Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation difficiulties #25

Open
shimwell opened this issue Feb 3, 2021 · 0 comments
Open

installation difficiulties #25

shimwell opened this issue Feb 3, 2021 · 0 comments

Comments

@shimwell
Copy link
Contributor

shimwell commented Feb 3, 2021

When installing via the cmake method the result is not automatically importable into python environment

git clone https://github.com/open-radiation-sources/parametric-plasma-source.git
cd parametric-plasma-source
git checkout develop
mkdir build
cd build
cmake .. -DOPENMC_DIR=/opt/openmc
make

So I have been adding a few commands to the end of this so that it becomes importable in python

cd .. && \
pip install .

unfortunately this results in two different .so files in two different locations. The python one appears to be easy to import but broken and the cmake one is not in the PYTHONPATH (when using the install instructions) but appears to work a little better.

When we import the SOURCE_SAMPLING_PATH it points to the pip installed broken version

from parametric_plasma_source import PlasmaSource, SOURCE_SAMPLING_PATH

So I guess the solution is to not perform the pip install . but to add the clone repo build dir to the PYTHONPATH enviromental variable.
export PYTHONPATH="${PYTHONPATH}:/parametric-plasma-source/build"

Either-way the installation is a bit messy / broken / not fully documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant