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

pypi distribution is not working perfectly #11

Open
shimwell opened this issue Sep 22, 2020 · 7 comments
Open

pypi distribution is not working perfectly #11

shimwell opened this issue Sep 22, 2020 · 7 comments

Comments

@shimwell
Copy link
Contributor

the install option of pip install parametric-plasma-source is not quite working

I think this is because the newest version does some cmake commands

One solution might be to move to a conda install / conda distribution

Screenshot from 2020-09-22 15-22-54

@shimwell
Copy link
Contributor Author

In the mean time users can always clone the repo and install using python setup.py install

@shimwell
Copy link
Contributor Author

Thanks for taking a look at this @DanShort12 and pointing out that the pypi upload doesn't contain the wheels.

@shimwell
Copy link
Contributor Author

The python.yml github actions has an upload wheels stage but I'm not sure if this line does anything at the moment

uses: actions/upload-artifact@v2

@DanShort12
Copy link
Contributor

The python.yml github actions has an upload wheels stage but I'm not sure if this line does anything at the moment

uses: actions/upload-artifact@v2

The 'upload-artifact' action will make the artifacts available outside of the action e.g. this, but won't 'upload' in the sense of putting it on PyPI.

@DanShort12
Copy link
Contributor

I had a go at the PyPI upload on TestPyPI and realized that this isn't building a manylinux package. I might have to take a look at getting the relevant docker image (or to work out why the install from tar.gz can't find cmake!).

@qingfengxia
Copy link

The cmake assuming openmc is installed to /opt/openmc while the installation can be detected by cmake: find_program() just as
which openmc will give the full path of openmc, from that openmc_DIR can be retrieved.

@DanShort12
Copy link
Contributor

Fair point that the OpenMC install location isn't being detected (that's a hand over from the original makefile implementation). However, I think the issue @shimwell reports here is related to pip not using the wheel that's created by CI, due to the install not using a manylinux-compatible image.

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

3 participants