blob: 772f6d59cd8aa287478ed4351147d19550ce491e (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
--- configure.in
+++ configure.in
@@ -54,7 +54,7 @@
AC_PATH_PROG(PYTHON, python)
AC_CACHE_CHECK(Python library path, local_cv_python_lib_dir,
[[if test -x "$PYTHON"; then
- local_cv_python_lib_dir=`$PYTHON -c "import sys;print sys.path[1]"`
+ local_cv_python_lib_dir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())"`
else
local_cv_python_lib_dir=NONE
fi]])
--- python/Makefile.am
+++ python/Makefile.am
@@ -1,31 +1,13 @@
pythonlib_DATA = \
- __init__.py __init__.pyc __init__.pyo \
- commands.py commands.pyc commands.pyo \
- config.py config.pyc config.pyo \
- constants.py constants.pyc constants.pyo \
- daemon.py daemon.pyc daemon.pyo \
- local.py local.pyc local.pyo \
- types.py types.pyc types.pyo
+ __init__.py \
+ commands.py \
+ config.py \
+ constants.py \
+ daemon.py \
+ local.py \
+ types.py
EXTRA_DIST = __init__.py commands.py config.py constants.py daemon.py types.py
CLEANFILES = local.py *.pyc *.pyo
local.py: Makefile
echo "sysconfdir = '${sysconfdir}'" >$@
-
-__init__.pyc: __init__.py local.py
-__init__.pyo: __init__.py local.py
-commands.pyc: commands.py local.py
-commands.pyo: commands.py local.py
-config.pyc: config.py local.py
-config.pyo: config.py local.py
-constants.pyc: constants.py local.py
-constants.pyo: constants.py local.py
-daemon.pyc: daemon.py local.py
-daemon.pyo: daemon.py local.py
-types.pyc: types.py local.py
-types.pyo: types.py local.py
-
-.py.pyc:
- python -c 'import $*' && touch $@
-.py.pyo:
- python -O -c 'import $*' && touch $@
|