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

Create dedicated environment YML for Windows & reenable tests #4785

Merged
merged 2 commits into from
Jun 19, 2021

Conversation

michaelosthege
Copy link
Member

@michaelosthege michaelosthege commented Jun 19, 2021

This is based on a cherry-pick of the commit from #4779 which fixes the Windows step in the CI by using a more robust conda environment file.

I also re-enabled the Windows job in the CI, but did not yet add more test files.

This is the first step towards #4517

The install installation guide for Windows was recently updated after it was discovered that the combination of numba+scipy dependencies leads to the correct installation of BLAS dependencies.
@michaelosthege michaelosthege added this to the vNext (4.0.0) milestone Jun 19, 2021
@@ -117,7 +127,7 @@ def main(conda_fname, pip_fname):
f"# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, "
"do not modify.\n# See that file for comments about the need/usage of each dependency.\n\n"
)
pip_content = header + "\n".join(pip_deps) + "\n"
pip_content = header + "\n".join(sorted(pip_deps)) + "\n"
Copy link
Member

Choose a reason for hiding this comment

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

Why does it have to be sorted?

Copy link
Member Author

Choose a reason for hiding this comment

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

In the Windows env file I split the dependencies by absolutely necessary vs. dev/docs related. The function here then took them in the same order, but requirements-dev.txt is sorted by another step in the precommit..

@@ -0,0 +1,37 @@
name: pymc3-dev-py38
Copy link
Member

Choose a reason for hiding this comment

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

Is there any particular reason the window dev environment needs to be different? If so add a comment up top so whoever reads this next is aware what those are.

I havet used windows in many years now so even I dont know, which is where the comment will help

Copy link
Member Author

Choose a reason for hiding this comment

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

The m2w64-toolchain dependency is Windows-only, but conda doesn't support OS-conditional dependencies in these files..

I figured it was easier to maintain & diagnose two separate files than to find the set of dependencies that magically makes the conda dependency resolver find the correct result on all platforms.

Copy link
Member

Choose a reason for hiding this comment

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

I would add this explanation to the file

Copy link
Member Author

Choose a reason for hiding this comment

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

Deferred to #4786

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

Successfully merging this pull request may close these issues.

2 participants