Skip to content

Commit

Permalink
Add a make egg target
Browse files Browse the repository at this point in the history
	* configure.ac (export_dynamic):
	* Makefile.am (egg):
	Add a make egg target
  • Loading branch information
Johan Dahlin committed Jan 20, 2006
1 parent db1b0de commit 93e7d04
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-01-19 Johan Dahlin <johan@gnome.org>

* configure.ac (export_dynamic):
* Makefile.am (egg):
Add a make egg target

2006-01-16 Johan Dahlin <johan@gnome.org>

* configure.ac: Post release version bump
Expand Down
20 changes: 20 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,23 @@ install-exec-local:
echo "gtk-$(PLATFORM_VERSION)" > $(DESTDIR)$(pyexecdir)/pygtk.pth
uninstall-local:
rm -f $(DESTDIR)$(pythondir)/pygtk.pth $(DESTDIR)$(pyexecdir)/pygtk.pth

EGG_NAME = $(PACKAGE)-$(PACKAGE_VERSION)-py$(PYTHON_VERSION)-$(PLATFORM).egg
TMPDIR = `pwd`/$(PACKAGE)-$(PACKAGE_VERSION)

egg: $(top_srcdir)/gobject/gobject.la PKG-INFO
rm -fr $(TMPDIR)
echo $(EGG_NAME)
mkdir -p $(TMPDIR)
mkdir -p $(TMPDIR)/EGG-INFO
make -C gobject install-pkgpyexecLTLIBRARIES pkgpyexecdir=$(TMPDIR)
$(INSTALL) dsextras.py $(TMPDIR)
rm -fr $(TMPDIR)/gobject.la
$(INSTALL) PKG-INFO $(TMPDIR)/EGG-INFO
echo "gobject.so" >> $(TMPDIR)/EGG-INFO/native_libs.txt
echo "gobject" >> $(TMPDIR)/EGG-INFO/top_level.txt
echo "dsextras.py" >> $(TMPDIR)/EGG-INFO/top_level.txt
touch $(TMPDIR)/EGG-INFO/zip-safe
cd $(TMPDIR) && zip -rq $(EGG_NAME) .
mv $(TMPDIR)/$(EGG_NAME) .
rm -fr $(TMPDIR)
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ AM_PATH_PYTHON(2.3.5)

AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])

PLATFORM=`$PYTHON -c "from distutils import util; print util.get_platform()"`
AC_SUBST(PLATFORM)

AC_ARG_ENABLE(thread,
AC_HELP_STRING([--disable-thread], [Disable pygobject threading support]),,
enable_thread=yes)
Expand Down

0 comments on commit 93e7d04

Please sign in to comment.