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

✨ NEW: Allow for selection of python version #52

Merged
merged 5 commits into from
Nov 27, 2020
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Nov 26, 2020

Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @chrisjsewell
it's definitely useful to separate out the creation of the python environment.

since it is directly imported in this role, with specific settings passed to the python role, I guess one then needs to be a bit careful in specifying the same settings when another role wants to reuse the same environment.

in any case, this looks good to me, just minor comments

python_version: ["3.7"]
include:
- distro: "centos8"
python_version: "3.8"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you mind adding a comment here on why this differentiation is necessary
(e.g. why not all on 3.7/3.8?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added 👍
yeh its weird that python37 is not available on CentOS 8 yum, and the other annoyance is: marvel-nccr/ansible-role-python#7

but I didn't want to dwell on these, as really for QM we are only interested in Ubuntu.

tasks/aiida-deps-debian.yml Show resolved Hide resolved
tasks/aiida-prepare.yml Show resolved Hide resolved
@chrisjsewell
Copy link
Member Author

chrisjsewell commented Nov 26, 2020

thanks for the review @ltalirz

I also removed the virtualenvwrapper tasks (ef1c5b5) because it doesn't really seem necessary here, and was anyhow missing steps compared to ansible-role-simulationbase

Generalise installation of plugins and their code, removing plugin specific tasks.
We also install plugins packages at the same time as aiida-core, with the pip 2020-resolver against a single requirements.txt, to ensure the creation of a consistent python environment.
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.

2 participants