From 3d6d962a78a9e79ff9cfef14d015db6f37cca244 Mon Sep 17 00:00:00 2001 From: valerio <valerio@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Tue, 15 Jun 2010 12:11:32 +0000 Subject: [PATCH] Improved create_bundle scripts git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2408 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- deployment/linux/create_bundle.py | 6 +++--- deployment/linux/create_qmean_bundle.py | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/deployment/linux/create_bundle.py b/deployment/linux/create_bundle.py index 3ee9a6c54..abd45cb6e 100644 --- a/deployment/linux/create_bundle.py +++ b/deployment/linux/create_bundle.py @@ -57,12 +57,12 @@ subprocess.call('sed "s/\#export QT_PLUGIN_PATH/ export QT_PLUGIN_PATH/g" script print 'Downloading Chemlib dictionary' subprocess.call('wget ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif', shell=True, cwd='../../') print 'Compiling Openstructure' -subprocess.call('cmake ./ -DCMAKE_BUILD_TYPE=Release -DPREFIX='+directory_name+' -DBoost_COMPILER='+boost_string, shell=True,cwd='../../') +subprocess.call('cmake ./ -DCMAKE_BUILD_TYPE=Release -DPREFIX='+directory_name+' -DBoost_COMPILER='+boost_string+'-DENABLE_IMG=OFF -DENABLE_UI=OFF -DENABLE_GFX=OFF', shell=True,cwd='../../') subprocess.call('make',shell=True,cwd='../../') print 'Converting Chemlib dictionary' subprocess.call('stage/bin/chemdict_tool create components.cif compounds.chemlib', shell=True, cwd='../../') -print 'Staging Chemlib dictionary' -subprocess.call('cmake ./ -DCOMPOUND_LIB=compounds.chemlib',shell=True,cwd='../../') +print '\nStaging Chemlib dictionary' +subprocess.call('cmake ./ -DCOMPOUND_LIB=compounds.chemlib -DENABLE_IMG=ON -DENABLE_UI=ON -DENABLE_GFX=ON',shell=True,cwd='../../') subprocess.call('make',shell=True,cwd='../../') print 'Removing obsolete packages and package directory' subprocess.call('rm -fr openstructure-linux*',shell=True,cwd='../../') diff --git a/deployment/linux/create_qmean_bundle.py b/deployment/linux/create_qmean_bundle.py index d62c348bd..3fd8aa4e1 100644 --- a/deployment/linux/create_qmean_bundle.py +++ b/deployment/linux/create_qmean_bundle.py @@ -60,9 +60,16 @@ subprocess.call('sed "s/\#export LD_LIBRARY_PATH/ export LD_LIBRARY_PATH/g" scri subprocess.call('sed "s/\#export PYTHONHOME/ export PYTHONHOME/g" scripts/dng.in.preprepre > scripts/dng.in.prepre',shell=True,cwd='../../') subprocess.call('sed "s/\#export PYTHONPATH/ export PYTHONPATH/g" scripts/ost.in.prepre > scripts/ost.in.pre',shell=True,cwd='../../') subprocess.call('sed "s/\#export QT_PLUGIN_PATH/ export QT_PLUGIN_PATH/g" scripts/dng.in.pre > scripts/dng.in',shell=True,cwd='../../') +print 'Downloading Chemlib dictionary' +subprocess.call('wget ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif', shell=True, cwd='../../') print 'Compiling Openstructure/Qmean' subprocess.call('cmake ./ -DCMAKE_BUILD_TYPE=Release -DPREFIX='+directory_name+' -DBoost_COMPILER='+boost_string+' -DONLY_QMEAN=ON -DENABLE_IMG=OFF -DENABLE_UI=OFF -DENABLE_GFX=OFF -DCOMPOUND_LIB=ChemLib/compounds.chemlib', shell=True,cwd='../../') subprocess.call('make',shell=True,cwd='../../') +print 'Converting Chemlib dictionary' +subprocess.call('stage/bin/chemdict_tool create components.cif compounds.chemlib', shell=True, cwd='../../') +print '\nStaging Chemlib dictionary' +subprocess.call('cmake ./ -DCOMPOUND_LIB=compounds.chemlib',shell=True,cwd='../../') +subprocess.call('make',shell=True,cwd='../../') print 'Removing obsolete packages and package directory' subprocess.call('rm -fr qmean-*',shell=True,cwd='../../') print 'Creating new package directory' -- GitLab