[med-svn] [Git][med-team/invesalius][master] Overriding override_dh_auto_configure to create invesalius_cy
Thiago Franco de Moraes
gitlab at salsa.debian.org
Mon Mar 2 14:36:51 GMT 2020
Thiago Franco de Moraes pushed to branch master at Debian Med / invesalius
Commits:
138c1d1c by Thiago Franco de Moraes at 2020-03-02T11:36:44-03:00
Overriding override_dh_auto_configure to create invesalius_cy
- - - - -
3 changed files:
- debian/invesalius-bin.install
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/invesalius-bin.install
=====================================
@@ -1,2 +1,2 @@
invesalius_cy/*.py /usr/lib/invesalius/invesalius_cy/
-invesalius/data/*.so /usr/lib/invesalius/invesalius_cy/
+invesalius_cy/*.so /usr/lib/invesalius/invesalius_cy/
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,2 @@
-# 10_import_cython_modules.patch
+10_import_cython_modules.patch
11_using_imageio.patch
=====================================
debian/rules
=====================================
@@ -4,19 +4,15 @@
# GPL
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
-
-package=invesalius
-
-PYMODDIR := /usr/lib/$(shell pyversions -r)
-TARGET = $(CURDIR)/debian/$(package)
-# shared library versions, option 1
-version=2.0.5
-major=2
+export PYBUILD_NAME=invesalius
%:
dh $@ --with python3 --buildsystem=pybuild
-override_dh_auto_build: create-cython-dir
+override_dh_auto_configure: create-cython-dir
+ dh_auto_configure
+
+override_dh_auto_build:
python3 setup.py build_ext --inplace
override_dh_auto_clean:
@@ -27,7 +23,7 @@ override_dh_compress:
dh_compress --exclude=LICENSE.pt.txt --exclude=.inv3
create-cython-dir:
- mkdir invesalius_cy/
+ mkdir -p invesalius_cy/
touch invesalius_cy/__init__.py
cp invesalius/data/*.pyx invesalius_cy
cp invesalius/data/*.pxd invesalius_cy
View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/138c1d1c19546ccea85b885d35a0662ff003aed1
--
View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/138c1d1c19546ccea85b885d35a0662ff003aed1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200302/3d3f6ea8/attachment-0001.html>
More information about the debian-med-commit
mailing list