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

Modified installation #70

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Modified installation #70

wants to merge 7 commits into from

Conversation

aj0337
Copy link
Collaborator

@aj0337 aj0337 commented Dec 1, 2024

Based on #67 -> #69

The current installation path via setup.py does not support editable installs where modifications to the code reflect immediately without reinstalling the package, which is convenient for development. More on editable installs here
https://pip.pypa.io/en/stable/topics/local-project-installs/

Use of python setup.py install was deprecated. More details available here
https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html

This PR replaces setup.py with pyproject.toml using flit as the installation engine. Instructions to install using the new approach are updated in the INSTALL file.

Note that this required some restructuring of directories. The core code of PAOFLOW is now housed under src/PAOFLOW. This makes the package -> module -> class structure more explicit, with (1) src/PAOFLOW package, (2) PAOFLOW.py module and (3) the PAOFLOW class. Lastly, the externals directory is moved to root.

The changes have been tested on examples/PAOFLOW-tutorial/PAO-tutorial.ipynb. PAOFLOW could benefit from a full testing suite. Will consider in a future PR.

@aj0337 aj0337 requested review from marcobn and Sassafrass6 December 1, 2024 06:53
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

Successfully merging this pull request may close these issues.

1 participant