Comments (11)
It imports a file ez_setup
from the same directory as setup.py. See https://github.com/opencobra/cobrapy.
from conda-build.
Now that branch does
$conda skeleton pypi cobra
Using url https://pypi.python.org/packages/source/c/cobra/cobra-0.2.1.tar.gz (1719270) for cobra.
Downloading cobra (use --no-download to skip this step)
Using cached download
Unpacking cobra...
done
working in /var/folders/yc/8wpl9rlx47qgzxqpcf003k280000gn/T/tmph2ujsxconda_skeleton
Traceback (most recent call last):
File "setup.py", line 49, in <module>
import ez_setup
ImportError: No module named 'ez_setup'
Traceback (most recent call last):
File "/Users/aaronmeurer/anaconda/bin/conda-skeleton", line 12, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/Users/aaronmeurer/Documents/Continuum/conda-build/bin/conda-skeleton", line 5, in <module>
sys.exit(main())
File "/Users/aaronmeurer/Documents/Continuum/conda-build/conda_build/main_skeleton.py", line 79, in main
args.func(args, p)
File "/Users/aaronmeurer/Documents/Continuum/conda-build/conda_build/main_skeleton.py", line 86, in execute
pypi.main(args, parser)
File "/Users/aaronmeurer/Documents/Continuum/conda-build/conda_build/pypi.py", line 284, in main
with open(join(tempdir, 'pkginfo.yaml'), encoding='utf-8') as fn:
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/yc/8wpl9rlx47qgzxqpcf003k280000gn/T/tmph2ujsxconda_skeleton/pkginfo.yaml'
which probably means it isn't failing correctly. @dan-blanchard
from conda-build.
Yeah, the temporary directory gets wiped out when the first part crashes, so then you get that additional FileNotFound
error.
I'm not sure why ez_setup
can't be imported, because we explicitly add the source directory to the PYTHONPATH
before creating the new python process.
from conda-build.
It should just bail if the subprocess returns nonzero I guess. That will fail if someone writes something stupid in their setup.py that exists nonzero on success, though (believe me, people do a lot of stupid things in setup.py; at this point, probably 90% of conda skeleton pypi
failures are due to people doing something odd and unexpected in setup.py).
from conda-build.
Okay, it now does that.
from conda-build.
So the issue is that they forgot to put ez_setup.py
in their MANIFEST. It's not in the tarball from PyPI.
from conda-build.
Ah, so we should support ez_setup. I installed it and was able to make the recipe, but it wasn't right. For one thing, it didn't depend on ez_setup. Also, ez_setup has its own downloading stuff that isn't patched around like the one in the Anaconda setuptools.
from conda-build.
Yeah, ez_setup
is kind of a mess. I think the most straightforward way to handle it would be to try to remove any references to ez_setup
from setup.py
if we see them, since it's whole purpose is to download setuptools
, which we have a conda package for.
from conda-build.
FWIW cobra no longer uses ez_setup.py, so this can probably be closed.
from conda-build.
works today. Closing
from conda-build.
Hi there, thank you for your contribution!
This issue has been automatically locked because it has not had recent activity after being closed.
Please open a new issue if needed.
Thanks!
from conda-build.
Related Issues (20)
- Different license for versionpy HOT 1
- New debug logs present in 3.28.0 HOT 1
- Recipes defining `outputs` without `package/version` fail in 3.28.0 HOT 2
- `tests/test_api_build.py::test_checkout_tool_as_dependency` failure
- conda-build 3.28.0 requires lief, which is not installed. HOT 1
- [DOC] `error_overlinking` flag HOT 1
- How to interpet linking WARNINGs from conda-build 3.28.x? HOT 10
- Specify the allowed syntax for the `about.description` key of the `meta.yaml` file HOT 6
- `source` lists do not allow `path` in conda-build 3.28.x HOT 2
- Post-link scripts in a noarch package are not properly included HOT 4
- FileNotFoundError: [WinError 206] The filename or extension is too long
- Overlinking check crashes with `TypeError` HOT 4
- Free-form extra section now required to be a mapping
- Package checks extremely slow with large build environments HOT 2
- `conda-build --test` won't install local `.tar.bz2` file from local channel if ran parallel HOT 5
- Release 24.1.x HOT 6
- Refactor conda_build_test_recipe tests
- Link checker cannot find dependencies for multi-output recipe in 3.28.3 HOT 5
- Issues when building both `wheel` and `conda` package HOT 8
- Package caching issue HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-build.