-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: pymc3-dev-py38 | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
# base dependencies (see install guide for Windows) | ||
- aesara>=2.0.9 | ||
- arviz>=0.11.2 | ||
- cachetools>=4.2.1 | ||
- dill | ||
- fastprogress>=0.2.0 | ||
- h5py>=2.7 | ||
- libpython | ||
- mkl-service | ||
- m2w64-toolchain | ||
- numba | ||
- numpy>=1.15.0 | ||
- pandas>=0.24.0 | ||
- pip | ||
- python=3.8 | ||
- python-graphviz | ||
- scipy>1.4.1 | ||
- typing-extensions>=3.7.4 | ||
# Extra stuff for dev, testing and docs build | ||
- ipython>=7.16 | ||
- myst-nb | ||
- nbsphinx>=0.4 | ||
- numpydoc>=0.9 | ||
- pre-commit>=2.8.0 | ||
- pydata-sphinx-theme | ||
- pytest-cov>=2.5 | ||
- pytest>=3.0 | ||
- recommonmark>=0.4 | ||
- sphinx-autobuild>=0.7 | ||
- sphinx-panels | ||
- sphinx>=1.5 | ||
- watermark |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,17 @@ | |
|
||
import yaml | ||
|
||
EXCLUDE = {"python", "libblas", "mkl-service", "python-graphviz"} | ||
EXCLUDE = { | ||
"pip", | ||
"python", | ||
"libblas", | ||
"libpython", | ||
"m2w64-toolchain", | ||
"mkl-service", | ||
"numba", | ||
"scipy", | ||
"python-graphviz", | ||
} | ||
RENAME = {} | ||
|
||
|
||
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does it have to be sorted? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
with open(pip_fname, "w") as pip_fd: | ||
pip_fd.write(pip_content) | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferred to #4786