[master] Add --with-python-install-dir configure option
4698. [port] Add --with-python-install-dir configure option to allow specifying a nonstandard installation directory for Python modules. [RT #45407]
This commit is contained in:
@@ -53,9 +53,9 @@ install:: ${TARGETS} installdirs
|
||||
${INSTALL_DATA} ${srcdir}/dnssec-keymgr.8 ${DESTDIR}${mandir}/man8
|
||||
if test -n "${PYTHON}" ; then \
|
||||
if test -n "${DESTDIR}" ; then \
|
||||
${PYTHON} ${srcdir}/setup.py install --root=${DESTDIR} --prefix=${prefix} ; \
|
||||
${PYTHON} ${srcdir}/setup.py install --root=${DESTDIR} --prefix=${prefix} @PYTHON_INSTALL_LIB@ ; \
|
||||
else \
|
||||
${PYTHON} ${srcdir}/setup.py install --prefix=${prefix} ; \
|
||||
${PYTHON} ${srcdir}/setup.py install --prefix=${prefix} @PYTHON_INSTALL_LIB@ ; \
|
||||
fi ; \
|
||||
rm -rf build ; \
|
||||
fi
|
||||
|
||||
@@ -12,8 +12,11 @@ import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(sys.argv[0]))
|
||||
if os.name != 'nt':
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
if '@PYTHON_INSTALL_DIR@': # value of --with-python-install-dir
|
||||
sys.path.insert(1, '@PYTHON_INSTALL_DIR@')
|
||||
else:
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
|
||||
import isc.checkds
|
||||
|
||||
|
||||
@@ -12,8 +12,11 @@ import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(sys.argv[0]))
|
||||
if os.name != 'nt':
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
if '@PYTHON_INSTALL_DIR@': # value of --with-python-install-dir
|
||||
sys.path.insert(1, '@PYTHON_INSTALL_DIR@')
|
||||
else:
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
|
||||
import isc.coverage
|
||||
|
||||
|
||||
@@ -12,8 +12,11 @@ import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(sys.argv[0]))
|
||||
if os.name != 'nt':
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
if '@PYTHON_INSTALL_DIR@': # value of --with-python-install-dir
|
||||
sys.path.insert(1, '@PYTHON_INSTALL_DIR@')
|
||||
else:
|
||||
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
||||
'python' + sys.version[:3], 'site-packages'))
|
||||
|
||||
import isc.keymgr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user