Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debian build scripts for newest Ubuntu cosmic #2362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions debian/rules
Expand Up @@ -6,22 +6,27 @@ export DH_ALWAYS_EXCLUDE=CVS:.git:.gitignore:__pycache__:src
export PYBUILD_SYSTEM=distutils

%:
# XXX somehow pybuild wants to build py37 even if it's not installed and we
# XXX try to tell it not to build it via PYBUILD_VERSIONS..
if [ `lsb_release -cs` = "cosmic" ]; then \
pybuild --disable '3.7'; \
fi
dh $@ --buildsystem=pybuild --with=python2,python3 --with quilt

binary:
dh binary

override_dh_auto_build:
dh_auto_build
set -ex; for python in $(shell py3versions -r); do \
set -ex; for python in $(shell py3versions -d); do \
$$python setup.py build; \
done;

override_dh_auto_install:
dh_auto_install #-- release
dh_numpy
dh_numpy3
set -ex; for python in $(shell py3versions -r); do \
set -ex; for python in $(shell py3versions -d); do \
echo $$python; \
$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
done;
Expand Down