Size: 907
Comment:
|
← Revision 3 as of 2018-08-30 19:18:40 ⇥
Size: 1021
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
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: | 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. Depending on how Salome has been installed the directory is a bit different try checking here: |
Line 9: | Line 11: |
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 with a different 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. On Windows the directory is '''ROOT\PRODUCTS\python-2.7.10\Lib\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.
Depending on how Salome has been installed the directory is a bit different try checking here:
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 with a different 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. On Windows the directory is ROOT\PRODUCTS\python-2.7.10\Lib\site-packages.