-
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
Don't require setup.py if setup.cfg is present #10
Comments
It would be good to support projects without a setup.py. But setuptools-conda is implemented as a distutils command dist_conda, that is called as Otherwise I'm thinking one approach could be to temporarily create a stub setup.py |
I think I was reading some code deep in pip or similar that essentially ran a setup.py stub in a little isolated |
You're probably right -- in the log output above you see that pip says "Running setup.py develop for demo", so it probably creates one itself. |
Indeed, the code in pip to create a shim file can be found here. That file also contains a number of functions |
Huh, interesting. I just realised that |
Thanks for the pointer to pip's shim. I went ahead and did something similar, and I'm pretty happy with it. Let me know if there are any issues. |
Thanks for the quick fix, this works now! |
First, let me says that this looks like a great tool to bridge the conda and vanilla python packaging worlds, thank you! 👏
Setuptools/pip does not anymore require a setup.py file (if setup.cfg is present). This is reflected in the documentation, e.g. here.
I noticed that, in contrast, setuptools-conda requires a setup.py file. If no setup.py is present, when
setuptools-conda.exe build .
runs python.exe setup.py dist_conda, it fails with "[Errno 2] No such file or directory".If run
pip install -e .
in the same directory, it completes successfully without issue.Do you need a more precise repro procedure, or is this sufficient?
The text was updated successfully, but these errors were encountered: