aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-09-22 08:40:49 -0400
committerJack Lloyd <[email protected]>2015-09-22 08:40:49 -0400
commitbde0f20542dff845bd04215cfc6881383ddbc1b0 (patch)
tree01d58e0c8d59ce9afca8485f9d5f2c16a7e9d562 /src/scripts
parentcfb12bf77940c566de1e6de4a79db6fe0d02ef1e (diff)
parentb8f438dc65b68cdc7535366bef247648b4107f91 (diff)
Merge pull request #281 from alonbl/build-python
Support installing botan.py to multiple python versions
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/install.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/scripts/install.py b/src/scripts/install.py
index 2c69213e5..d1d62b6c5 100755
--- a/src/scripts/install.py
+++ b/src/scripts/install.py
@@ -181,11 +181,12 @@ def main(args = None):
os.path.join(pkgconfig_dir, os.path.basename(cfg['botan_pkgconfig'])))
if 'ffi' in cfg['mod_list'].split('\n'):
- py_lib_path = os.path.join(lib_dir, 'python%s' % (cfg['python_version']), 'site-packages')
- logging.debug('Installing python module to %s' % (py_lib_path))
- makedirs(py_lib_path)
- for py in ['botan.py']:
- copy_file(os.path.join(cfg['python_dir'], py), os.path.join(py_lib_path, py))
+ for ver in cfg['python_version'].split(','):
+ py_lib_path = os.path.join(lib_dir, 'python%s' % (ver), 'site-packages')
+ logging.debug('Installing python module to %s' % (py_lib_path))
+ makedirs(py_lib_path)
+ for py in ['botan.py']:
+ copy_file(os.path.join(cfg['python_dir'], py), os.path.join(py_lib_path, py))
shutil.rmtree(target_doc_dir, True)
shutil.copytree(cfg['doc_output_dir'], target_doc_dir)