If your prefer to install the BornAgain python libraries not to the site-packages folder of your Python interpreter, but to some custom folder, you can do this in a following way.
bornagain_install_python.py
script from application bundle:$ python /Applications/BornAgain.app/Contents/libexec/BornAgain-1.19/bornagain_python_install.py
...
BornAgain Python bundle is successfully created in temporary directory
'/var/folders/zt/0l4f_l_d46v5rkx668jqx0b4000lw7/T/bornagain_bundle'
...
$ cd /var/folders/zt/0l4f_l_d46v5rkx668jqx0b4000lw7/T/bornagain_bundle
PYTHONUSERBASE
to the directory where you want the BornAgain libraries to be installed:$ export PYTHONUSERBASE=/Users/me/my_python_extra
setup.py
script to install the BornAgain core libraries to the specified folder$ python setup.py install --user
$ python -c "import bornagain"
If no error is displayed, the installation was successful.
You need to make sure that the PYTHONUSERBASE
environment variable is always defined when you run your python scripts. You may also insert the corresponding export directive into your .profile
configuration file:
$ export PYTHONUSERBASE=/Users/me/my_python_extra