aboutsummaryrefslogtreecommitdiff
path: root/devel/ice37/files/patch-python-config-Make.rules
blob: 8878487979ba5eabc4cf8914d94dd2ff8bb1f35e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- python/config/Make.rules.orig	2021-06-21 14:44:58 UTC
+++ python/config/Make.rules
@@ -7,7 +7,8 @@
 # version to be used for building the Ice extension, set PYTHON to the
 # location of the python interpreter.
 #
-PYTHON              ?= python
+PYTHON              = %%PYTHON_CMD%%
+slice2py_path       = $(localbase)/bin/slice2py
 
 # ----------------------------------------------------------------------
 # Don't change anything below this line!
@@ -59,7 +60,7 @@ python_cppflags         := $(filter-out -Wunreachable-
 #
 # Python installation directory
 #
-install_pythondir       = $(or $(PYTHON_INSTALLDIR),$(if $(usr_dir_install),$(shell $(PYTHON) $(lang_srcdir)/config/install_dir),$(prefix)/python))
+install_pythondir	= %%PYTHON_SITELIBDIR%%
 
 #
 # Rules to build a python module. We just compute the name of the python module