forked from GitHub/gf-core
debian/rules: a hack to put the python binding in the right directory
The setup.py script puts it under site-packages, but python only looks under dist-packages... Also some minor changes for 'make deb' in Makefile
This commit is contained in:
4
Makefile
4
Makefile
@@ -30,6 +30,6 @@ html::
|
|||||||
|
|
||||||
# Make a debian package. First add a suitable entry with the correct GF version
|
# Make a debian package. First add a suitable entry with the correct GF version
|
||||||
# number to the top of debian/changelog.
|
# number to the top of debian/changelog.
|
||||||
# (Tested on Ubuntu 11.10 & 12.04. You need to install dpkg-dev & debhelper.)
|
# (Tested on Ubuntu 14.04. You need to install dpkg-dev & debhelper.)
|
||||||
deb:
|
deb:
|
||||||
dpkg-buildpackage -us -uc
|
dpkg-buildpackage -b
|
||||||
|
|||||||
1
debian/rules
vendored
1
debian/rules
vendored
@@ -24,6 +24,7 @@ override_dh_auto_install:
|
|||||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal copy --destdir=$(CURDIR)/debian/gf
|
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal copy --destdir=$(CURDIR)/debian/gf
|
||||||
cd src/runtime/c && ./setup.sh copy prefix=$(CURDIR)/debian/gf/usr
|
cd src/runtime/c && ./setup.sh copy prefix=$(CURDIR)/debian/gf/usr
|
||||||
cd src/runtime/python && python setup.py install --prefix=$(CURDIR)/debian/gf/usr
|
cd src/runtime/python && python setup.py install --prefix=$(CURDIR)/debian/gf/usr
|
||||||
|
D="`find debian/gf -name site-packages`" && [ -n "$$D" ] && cd $$D && cd .. && mv site-packages dist-packages
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
ifneq (nocheck,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
ifneq (nocheck,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||||
|
|||||||
Reference in New Issue
Block a user