You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install a personal package called CvTools, which depends on pyxb, a package which has no wheels on pypi. I assume this is related to the PEP 518 stuff mentioned in #5171 (comment). However, pyxb is not required for building, so is there a way to specify this dependency in a way that pip 10 will handle?
$ venv5/bin/pip install -v .
[...]
1 location(s) to search for versions of pyxb:
* https://pypi.python.org/simple/pyxb/
Getting page https://pypi.python.org/simple/pyxb/
Looking up "https://pypi.python.org/simple/pyxb/" in the cache
Returning cached "301 Moved Permanently" response (ignoring date and etag information)
Looking up "https://pypi.org/simple/pyxb/" in the cache
Current age based on date: 171
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 171
Analyzing links from page https://pypi.org/simple/pyxb/
Skipping link https://files.pythonhosted.org/packages/d8/24/d50e4e4b6a8dc55978dce11d5dcdb0edca2b688b4a03703a5dde2b3065ae/PyXB-base-1.0.0.tar.gz#sha256=ae5ce29446280f6aeb0948cf5955c2de3e34b209591f4dabf3fbc338ee2e6c76 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/6e/31/eb764cddadeda8a540b6e4d37a63147f4489a3dd8fcb87e40fd0d6355f21/PyXB-doc-1.0.0.tar.gz#sha256=fc0daf71f8bff07c9800cf288d1b5440c55ade23062f3eebc77c88fd36c3e15c (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/8a/09/7d534166fa5393ee827a4b4494df4dfa2e547fadd6ecad412305c407eb5d/PyXB-base-1.1.0.tar.gz#sha256=2dc82e953b5b17da32e98763221d7d5667374fd602cc5f2be9c33cd68233ef5f (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/92/b3/d9c8fbdb186fb3775ae962fe5b1052613afd57cc9a0c1d28d170ffcf2245/PyXB-full-1.1.0.tar.gz#sha256=807d2af6ee846c45aa232a3fe9c7a85ca3bda375f82b79291cd121661748f99a (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/35/6c/35951d8213d07375f8f82fdb018501559dca367ca6014a8ada1a5dfd666a/PyXB-full-1.1.3.tar.gz#sha256=d581f7dca10811ca05a16bb49553ba47631360d26075a0b8a89d20471ab5de18 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/d4/86/00419d55e487e56d3ed91deef027dfeb5cae201e87494004990725d3d535/PyXB-1.1.4.tar.gz#sha256=c147a61cc7ec4a3c51ad2617d04548b0643dcdcffe00e4622d0f02a083a888ea (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/34/72/34b47dc6583dc8a0f30bad0f7d6d73c999dfca5f99613b5190f49d37ba24/PyXB-1.1.5.tar.gz#sha256=f40b1c93118c26f97ae2bbc1b7d49844719545beed3d7182b850963409dc1fa7 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/50/c1/e26cea688c22e2c7437b5f60dfe4d14966835ca832e9e1e5f338b705bbd3/PyXB-1.2.1.tar.gz#sha256=91741e4e004703d708a896789d8cb853fdce25d136ebb1d506366c8f4adca2c0 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/0c/85/92931cca2b008826694919f5df3b3518a7e143cb2c7620041871a5eb472f/PyXB-1.2.2.tar.gz#sha256=681735c117c4eda607ea01a63eef93794bda5c5c5551b5811ee6bd79fd24fb51 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/fe/87/470910c8818daa7623be587413eda29ffde8ecfa1c823c648684cfbdc486/PyXB-1.2.3.tar.gz#sha256=af378818998bfbebaf38f759b6759d917b2b56f00620dcdc276e886af4dd672e (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/92/7b/e2629fa1c503db55242867182a6df0056fb0f5d164f2cf815adb3821c1c7/PyXB-1.2.4.tar.gz#sha256=024f9d4740fde187cde469dbe8e3c277fe522a3420458c4ba428085c090afa69 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/43/7a/9d40392e4380463f37bf5aa2851dfd8ba7c0e4d2a9dc2355177b8b785794/PyXB-1.2.5.tar.gz#sha256=4e8f62ee2cfffc37e4f40634ab9c79e0311cfaf28cf4ce5e7f4828ec56e4ff67 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Skipping link https://files.pythonhosted.org/packages/e3/09/4fdb190ea2b7cb43d6d3e745276ee69f4d6181be70fcbfda7df3c5f72f0e/PyXB-1.2.6.tar.gz#sha256=2a00f38dd1d87b88f92d79bc5a09718d730419b88e814545f472bbd5a3bf27b4 (from https://pypi.org/simple/pyxb/); No sources permitted for pyxb
Could not find a version that satisfies the requirement pyxb (from versions: )
Cleaning up...
Removing source in /tmp/pip-req-build-1tawvn8o
No matching distribution found for pyxb
Exception information:
Traceback (most recent call last):
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 291, in run
resolver.resolve(requirement_set)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/resolve.py", line 103, in resolve
self._resolve_one(requirement_set, req)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/resolve.py", line 257, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for
self.require_hashes
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 322, in prepare_linked_requirement
abstract_dist.prep_for_dist(finder, self.build_isolation)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 148, in prep_for_dist
_install_build_reqs(finder, prefix, build_requirements)
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 59, in _install_build_reqs
for r in build_requirements
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 59, in <listcomp>
for r in build_requirements
File "/home/emil/Code/CvTools/venv5/lib/python3.6/site-packages/pip/_internal/index.py", line 533, in find_requirement
'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for pyxb
[...]
The text was updated successfully, but these errors were encountered:
Per the comments in #5171 , I tried adding --no-build-isolation, and then it works. However, the pip command is run via tox in this case, but at least I have a lead now.
Actually, this seems to be my mistake. In addition to setup.py, I also found a pyproject.toml (containing pyxb as a build requirement) that I had forgotten about. Removing pyxb from there is also enough to fix the issue. Sorry for the noise.
Description:
I'm trying to install a personal package called CvTools, which depends on pyxb, a package which has no wheels on pypi. I assume this is related to the PEP 518 stuff mentioned in #5171 (comment). However, pyxb is not required for building, so is there a way to specify this dependency in a way that pip 10 will handle?
This is the relevant portion of setup.py:
I assume that this is because the
What I've run:
The text was updated successfully, but these errors were encountered: