Blame debconf-1.5.49-python_version_support.patch
|
|
0e4d434 |
--- ./Makefile.orig 2017-07-03 06:15:11.000000000 +0100
|
|
|
0e4d434 |
+++ ./Makefile 2017-08-18 20:15:59.975264399 +0100
|
|
|
0e4d434 |
@@ -38,8 +38,7 @@ PERL := perl
|
|
|
0e4d434 |
PERL_VENDORLIB := $(shell $(PERL) -MConfig -e 'print $$Config{vendorlib}')
|
|
|
0d42696 |
|
|
|
0d42696 |
# This would probably be easier if we used setup.py ...
|
|
|
0d42696 |
-PYTHON2_SUPPORTED := $(shell pyversions -s)
|
|
|
0d42696 |
-PYTHON_SITEDIR = $(prefix)/usr/lib/$(1)/$(if $(filter 2.0 2.1 2.2 2.3 2.4 2.5,$(patsubst python%,%,$(1))),site-packages,dist-packages)
|
|
|
0d42696 |
+PYTHON_SITEDIR = $(shell python -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())")
|
|
|
0d42696 |
|
|
|
0d42696 |
# Install all else.
|
|
|
0d42696 |
install-rest:
|
|
|
0e4d434 |
@@ -59,10 +58,8 @@ install-rest:
|
|
|
0d42696 |
# Install modules.
|
|
|
0d42696 |
find Debconf -type f -name '*.pm' |grep -v CVS | \
|
|
|
0e4d434 |
xargs -i install -m 0644 {} $(prefix)/$(PERL_VENDORLIB)/{}
|
|
|
0d42696 |
- set -e; for dir in $(foreach python,$(PYTHON2_SUPPORTED),$(call PYTHON_SITEDIR,$(python))); do \
|
|
|
0d42696 |
- install -d $$dir; \
|
|
|
0d42696 |
- install -m 0644 debconf.py $$dir/; \
|
|
|
0d42696 |
- done
|
|
|
0d42696 |
+ install -d $(prefix)$(PYTHON_SITEDIR)
|
|
|
0d42696 |
+ install -m 0644 debconf.py $(prefix)$(PYTHON_SITEDIR)
|
|
|
0d42696 |
install -d $(prefix)/usr/lib/python3/dist-packages
|
|
|
775cbf2 |
install -m 0644 debconf.py $(prefix)/usr/lib/python3/dist-packages/
|
|
|
0d42696 |
# Special case for back-compatability.
|