[statsmodels] 10/14: Use a loop to move .so files into the Python 2 & 3 -lib package
Diane Trout
diane at moszumanska.debian.org
Fri Sep 8 06:26:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
diane pushed a commit to branch detrout-python3
in repository statsmodels.
commit ebc5dc498b73c92b37013345dcde6b3ac31bb0f1
Author: Diane Trout <diane at ghic.org>
Date: Thu Sep 7 23:16:03 2017 -0700
Use a loop to move .so files into the Python 2 & 3 -lib package
I had some issues with getting the variable names passed through make
and the shell script so perhaps there was a less disruptive change
---
debian/rules | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/debian/rules b/debian/rules
index c78698b..37e745b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -78,14 +78,16 @@ override_dh_installdocs:
## move binary libraries into -lib
-override_dh_python2:
- : # Move platform-specific libraries into -lib
- for lib in $$(find $(PACKAGE_ROOT_DIR)/usr -name '*.so'); do \
- sdir=$$(dirname $$lib) ; \
- tdir=$(PACKAGE_ROOT_DIR)-lib/$${sdir#*$(PACKAGE_NAME)/} ; \
- mkdir -p $$tdir ; \
- echo "I: Moving '$$lib' into '$$tdir'." ; \
- mv $$lib $$tdir ; \
+override_dh_auto_install:
+ dh_auto_install
+ for PACKAGE_NAME in python-statsmodels python3-statsmodels; do \
+ for lib in $$(find debian/$${PACKAGE_NAME}/usr -name '*.so'); do \
+ sdir=$$(dirname $$lib) ; \
+ tdir=debian/$${PACKAGE_NAME}-lib/$${sdir#*$${PACKAGE_NAME}/} ; \
+ mkdir -p $$tdir ; \
+ echo "I: Moving '$$lib' into '$$tdir'." ; \
+ mv $$lib $$tdir ; \
+ done ; \
done
if [ -x /usr/bin/dh_numpy ]; then dh_numpy -ppython-statsmodels-lib; fi
: # Prune scikits/__init__.py to avoid conflicts
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/statsmodels.git
More information about the debian-science-commits
mailing list