Skip to content
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

Error if a package only has wheels in pypi #15

Open
alexvorobiev opened this issue Apr 6, 2020 · 3 comments
Open

Error if a package only has wheels in pypi #15

alexvorobiev opened this issue Apr 6, 2020 · 3 comments

Comments

@alexvorobiev
Copy link

faiss is an example:

$ python-package-init faiss
Fetching package="faiss" version="stable"
Traceback (most recent call last):
  File "/nix/store/zaz1rix5k7svlxjrbdl7q3sx822xna73-python3.7-nixpkgs-pytools-1.3.0/bin/.python-package-init-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/5gfkpdxiabdnh8q5gcm79ln9qamqr47r-python3-3.7.6-env/lib/python3.7/site-packages/nixpkgs_pytools/python_package_init.py", line 34, in main
    args.nixpkgs_root,
  File "/nix/store/5gfkpdxiabdnh8q5gcm79ln9qamqr47r-python3-3.7.6-env/lib/python3.7/site-packages/nixpkgs_pytools/python_package_init.py", line 66, in initialize_package
    metadata = package_json_to_metadata(data, package_name, version)
  File "/nix/store/5gfkpdxiabdnh8q5gcm79ln9qamqr47r-python3-3.7.6-env/lib/python3.7/site-packages/nixpkgs_pytools/python_package_init.py", line 98, in package_json_to_metadata
    "no source distribution (sdist) found for {package_name}:{package_version}".format(package_name=package_name, package_version=package_version)
ValueError: no source distribution (sdist) found for faiss:1.5.3
@makefu
Copy link
Member

makefu commented Jul 19, 2020

can confirm, this is quite unfortunate. @costrouc do you have an idea how to proceed here?
maybe at least we could write out a more useful error message.

@costrouc
Copy link
Member

Yeah this should be fairly easy to implement. I can't promise I have the time right now to implement that. Wheels actually have more information on them than sdists to we should be able to get more accurate requiements

@Pandapip1
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants