Commit 0f93ffd8 authored by Sandro Tosi's avatar Sandro Tosi

rework for new upstream setup.py

parent 4b5f61d2
......@@ -9,8 +9,10 @@ basemap (1.2.0+dfsg-1) UNRELEASED; urgency=medium
- refresh patches
* debian/control
- add setuptool, six, pyshp, pyproj, matplotlib, netcdf4 to b-d
* debian/control
- rework for new upstream setup.py
-- Sandro Tosi <morph@debian.org> Wed, 09 Jan 2019 00:38:25 -0500
-- Sandro Tosi <morph@debian.org> Thu, 10 Jan 2019 17:50:49 -0500
basemap (1.1.0+dfsg-3) unstable; urgency=medium
......
......@@ -11,32 +11,17 @@ override_dh_auto_install:
set -e ; \
cython3 -2 src/*pyx; \
for python in $(PY2VERS); do \
mkdir -p $(CURDIR)/debian/python-mpltoolkits.basemap/usr/lib/python2.7/dist-packages ; \
PYTHONPATH=$(CURDIR)/debian/python-mpltoolkits.basemap/usr/lib/python2.7/dist-packages $$python setup.py install --prefix $(CURDIR)/debian/python-mpltoolkits.basemap/usr --install-layout=deb; \
mkdir -p $(CURDIR)/debian/python-mpltoolkits.basemap-dbg/usr/lib/python2.7/dist-packages ; \
PYTHONPATH=$(CURDIR)/debian/python-mpltoolkits.basemap-dbg/usr/lib/python2.7/dist-packages $$python-dbg setup.py install --prefix $(CURDIR)/debian/python-mpltoolkits.basemap-dbg/usr --install-layout=deb; \
$$python setup.py install --root $(CURDIR)/debian/python-mpltoolkits.basemap/ --install-layout=deb; \
$$python-dbg setup.py install --root $(CURDIR)/debian/python-mpltoolkits.basemap-dbg/ --install-layout=deb; \
done
set -e ; \
cython3 -3 src/*pyx; \
for python in $(PY3VERS); do \
mkdir -p $(CURDIR)/debian/python3-mpltoolkits.basemap/usr/lib/python3/dist-packages ; \
PYTHONPATH=$(CURDIR)/debian/python3-mpltoolkits.basemap/usr/lib/python3/dist-packages $$python setup.py install --prefix $(CURDIR)/debian/python3-mpltoolkits.basemap/usr --install-layout=deb; \
mkdir -p $(CURDIR)/debian/python3-mpltoolkits.basemap-dbg/usr/lib/python3/dist-packages ; \
PYTHONPATH=$(CURDIR)/debian/python3-mpltoolkits.basemap-dbg/usr/lib/python3/dist-packages $$python-dbg setup.py install --prefix $(CURDIR)/debian/python3-mpltoolkits.basemap-dbg/usr --install-layout=deb; \
$$python setup.py install --root $(CURDIR)/debian/python3-mpltoolkits.basemap/ --install-layout=deb; \
$$python-dbg setup.py install --root $(CURDIR)/debian/python3-mpltoolkits.basemap-dbg/ --install-layout=deb; \
done
dh_numpy
override_dh_python2:
dh_python2
# remove namespace file, already shipped with python-matplotlib
rm $(CURDIR)/debian/python-mpltoolkits.basemap/usr/lib/python2*/dist-packages/mpl_toolkits/__init__.py
override_dh_python3:
dh_python3
# remove namespace file, already shipped with python3-matplotlib
rm $(CURDIR)/debian/python3-mpltoolkits.basemap/usr/lib/python3*/dist-packages/mpl_toolkits/__init__.py
build: build-arch build-indep ;
build-arch:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment