Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2016-12-27 16:07:54
Size: 840
Editor: landisb
Comment:
Revision 3 as of 2018-08-30 19:18:40
Size: 1021
Editor: landisb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
=== Linking external Python packages to SALOME ===
Line 3: 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.
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. Depending on how Salome has been installed the directory is a bit different try checking here:
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. 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. 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:

  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.

  2. 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.

Infrastructure/AuxiliarySoftware/Python_with_SALOME (last edited 2018-08-30 19:18:40 by landisb)