⇤ ← Revision 1 as of 2016-12-27 16:07:54
Size: 840
Comment:
|
Size: 907
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
=== Linking external Python packages to SALOME === |
|
Line 5: | Line 7: |
1. If you used the older installation method, the root installation directory should have a folder called appli_V7_7_1 and then your site-packages is at ROOT/appli_V7_7_1/lib/python2.7/site-packages/salome. | 1. If you used the older installation method, the root installation directory should have a folder called appli_V7_7_1 and then your site-packages is at '''ROOT/appli_V7_7_1/lib/python2.7/site-packages/salome'''. |
Line 7: | Line 9: |
1. Otherwise the newer installation method, the installation directory will instead have a folder PREREQUISITES and then your site-packages is at ROOT/PREREQUISITES/INSTALL/Python-2.7.10/FROM_nothing/lib/python2.7/site-packages. | 1. Otherwise the newer installation method, the installation directory will instead have a folder PREREQUISITES and then your site-packages is at '''ROOT/PREREQUISITES/INSTALL/Python-2.7.10/FROM_nothing/lib/python2.7/site-packages'''. |
Linking external Python packages to SALOME
Linking to python packages that have not been built in to Salome's default python interpreter is not intuitive, but is otherwise straight forward.
Add a new file (extension .pth) containing the path to the site-packages of the other python installation you wish to use to Salome's python site-packages directory. There are two possible locations, depending on how Salome has been installed:
If you used the older installation method, the root installation directory should have a folder called appli_V7_7_1 and then your site-packages is at ROOT/appli_V7_7_1/lib/python2.7/site-packages/salome.
Otherwise the newer installation method, the installation directory will instead have a folder PREREQUISITES and then your site-packages is at ROOT/PREREQUISITES/INSTALL/Python-2.7.10/FROM_nothing/lib/python2.7/site-packages.