[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Build: add the configuration variable python_libdir.
From: |
Beat Bolli |
Subject: |
[gpsd-dev] [PATCH] Build: add the configuration variable python_libdir. |
Date: |
Wed, 4 Dec 2013 21:42:48 +0100 |
This lets the user choose the Python install directory.
With the default settings, gpsd is installed under /usr/local,
except for the Python parts, which are installed in the system
directories under /usr/lib/pythonx.y/site-packages.
This option allows to install the Python parts under /usr/local.
Tested with "scons install
python_libdir=/usr/local/lib/python2.7/site-packages".
Signed-off-by: Beat Bolli <address@hidden>
---
SConstruct | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/SConstruct b/SConstruct
index b2b9a57..3c6eb62 100644
--- a/SConstruct
+++ b/SConstruct
@@ -178,6 +178,8 @@ nonboolopts = (
("gpsd_user", "nobody", "privilege revocation user",),
("gpsd_group", def_group, "privilege revocation group"),
("prefix", "/usr/local", "installation directory prefix"),
+ ("python_libdir", sysconfig.get_python_lib(plat_specific=1),
+ "Python module directory prefix"),
("limited_max_clients", 0, "maximum allowed clients"),
("limited_max_devices", 0, "maximum allowed devices"),
("fixed_port_speed", 0, "fixed serial port speed"),
@@ -1316,7 +1318,7 @@ if not env['debug'] and not env['profiling'] and
env['strip']:
if not env['python']:
python_install = []
else:
- python_lib_dir = sysconfig.get_python_lib(plat_specific=1)
+ python_lib_dir = env['python_libdir']
python_module_dir = python_lib_dir + os.sep + 'gps'
python_extensions_install = python_env.Install( DESTDIR +
python_module_dir,
python_built_extensions)
--
1.8.4.3
- [gpsd-dev] [PATCH] Build: add the configuration variable python_libdir.,
Beat Bolli <=