-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix setuptools on conda-forge feedstock #179
Conversation
@xylar I am having a hard time testing that this setup works. For some reason, if I create the environment without the #!/bin/bash
conda activate base
yes | conda env remove -n mache_dev
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create -y -n mache_dev --file spec-file.txt
conda activate mache_dev
python -m pip install .
and then I am checking for the |
Let's change "Azure Pipelines" to "the conda-forge feedstock". I know it's a subtlety but the issue is that the build isn't working when the code doesn't come from GitHub, not which CI it's building on. |
Regarding testing, one thing I discovered in my own testing is that we need to remove the To be on the safe side, I would also try testing on Perlmutter rather than your laptop. Perlmutter runs on something like Linux, so that would eliminate the possibility that MacOS is responsible for the different behavior. Also it would be good to test with downloaded source code rather than a git repository. (This is what didn't work with
Then, you can untar the file and to a test install:
Then, you can try:
I tried this on Chrysalis and the first one works successfully (the config files are there) but the second one doesn't. You can also try using
Again, I'm seeing that the first will succeed and the second fails. Maybe your testing was successful even without the |
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.
This worked for me on Chrysalis even outside of a git repository, whereas I am seeing failures without the MANIFEST.in
.
@xylar Perfect, that sounds like exactly what I needed. I'll stick to testing on PM by default. Do you want me to do any additional testing for this PR before we merge? It sounds like you only tested on Chrysalis so I'll go ahead and set things up to test on PM myself. |
@xylar just tested this branch on perlmutter and it worked exactly as expected. Without |
Great, merge when you're ready. |
A previously added setuptools option,
setuptools-scm
, was set in #175 during the transition fromsetup.cfg
topyproject.toml
, and this option ended up not working on the conda-forge feedstock. This PR removes that option and replaces it again with theMANIFEST.in
file.Checklist
Testing
comment in the PR documents testing used to verify the changes