1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Use --break-system-packages to enable a local pip install
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2025-06-03
Forwarded: no
Spoiler: Doesn't really break-system-packages.
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,4 @@
-#!/usr/bintenv bash
+#!/usr/bin/bash
VPATH = @srcdir@
srcdir = @srcdir@
@@ -171,7 +171,7 @@
endif
python3:
@echo "Building Python interface"
- LDSHARED=${LDSHARED} ${PYTHONEXEC} -m pip install --no-deps $(srcdir)
+ python3 -m pip install --break-system-packages --no-deps $(srcdir) --prefix `pwd`/debian/tmp --no-cache-dir
test_a_python:
@echo "${OK_COLOR}Testing ${TEST_NAME} ${NO_COLOR}"
${PYTHONEXEC} ${TEST_NAME} ${VERB}
@@ -262,7 +262,7 @@
env TEST_NAME=Test/test_cmor_path_and_file_templates.py make test_a_python
env TEST_NAME=Test/test_cmor_check_cv_structure.py make test_a_python
env TEST_NAME=Test/test_cmor_time_value_and_bounds_mismatch.py make test_a_python
-test_cmip6_cv: python
+test_cmip6_cv: python3
env TEST_NAME=Test/test_python_CMIP6_CV_sub_experimentnotset.py make test_a_python
env TEST_NAME=Test/test_python_CMIP6_CV_sub_experimentbad.py make test_a_python
env TEST_NAME=Test/test_python_CMIP6_CV_furtherinfourl.py make test_a_python
|