Skip to content

Commit

Permalink
Removal of python2 for debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kif committed Jan 31, 2020
1 parent ad93886 commit dec10f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package/debian11/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export PYBUILD_NAME=pyfai

%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_clean:
dh_clean
Expand All @@ -13,17 +13,15 @@ override_dh_clean:

override_dh_auto_build:
dh_auto_build
python setup.py build build_man build_doc
python3 setup.py build build_man build_doc
# PYBUILD_SYSTEM=custom \
# PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} http_proxy='localhost' sphinx-build -N -bhtml doc/source build/html" dh_auto_build

override_dh_install:
dh_numpy
dh_numpy3

# move the scripts to right package
dh_install -p pyfai debian/python3-pyfai/usr/bin usr/
#python3 setup.py install_scripts -d debian/pyfai/usr/bin
# remove all scripts installed by pybuild
rm -rf debian/python-pyfai/usr/bin
rm -rf debian/python3-pyfai/usr/bin
Expand Down

0 comments on commit dec10f0

Please sign in to comment.