question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip skips fetching package from "install_requires" section

See original GitHub issue

Hi,

I have a package (testRecord1) hosted on PyPi. I’m able to pip install the package on Linux platform. If I add this package in install_requires section of another package’s setup.py and try to create a wheel for it, the wheel creation fails with the following :

 Analyzing links from page https://pypi.python.org/simple/testrecord1/
    Skipping link https://pypi.python.org/packages/ec/d6/a70e8a40358e05a41269feecfcb231d0f42680ddddab9dcdbe911e6310f0/testRecord1-2018.0.0-py2.py3-none-manylinux1_x86_64.whl#md5=b440157247b4d09102ab450b70b4b3ce (from https://pypi.python.org/simple/testrecord1/); No binaries permitted for testRecord1
 Could not find a version that satisfies the requirement testRecord1 (from testRecord2==0.2) (from versions: )

Would really appreciate some feedback on how to circumvent this. I’ve also tried creating testRecord1’s wheel with :

class BinaryDistribution(dist.Distribution):
    def is_pure(self):
      return False

setup(...
distclass=BinaryDistribution
)

Still no luck.

Thanks, Rohit (p.s. wheel for testRecord1 was created with the following setup.cfg:

[bdist_wheel]
universal = 1

)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benoit-pierrecommented, Aug 31, 2017

Why don’t you create the wheels by using python ./setup.py bdist_wheel ... directly, instead of going through pip?

0reactions
rohit-jamuarcommented, Aug 31, 2017

I’m actually using conda-build to create wheels, the nicer thing about using pip as opposed to setup.py is that pip does a clean-up of temporary files post creation of wheel. “setup.py bdist_wheel” leaves behind meta files that are eventually tarball-ed into a conda-package with the wheel, which I want to avoid. But, “setup.py bdist_wheel” might be a better option in the long run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to include and install local dependencies in setup.py in ...
So, I have created a custom_package_0.1.whl which will be included into the distribution and must be installed as a dependency after setup.py installs ......
Read more >
Defining metadata (meta.yaml) - Conda
Source section . Specifies where the source code of the package is coming from. The source may come from a tarball file, git,...
Read more >
python setup.py install_requires - You.com | The Search ...
This section covers some additional details on configuring, packaging and distributing Python projects with setuptools that aren't covered by the introductory ...
Read more >
Dependencies Management in Setuptools
When your project is installed (e.g., using pip), all of the dependencies not already installed will be located (via PyPI), downloaded, built (if...
Read more >
pip Documentation
The PyPA recommended tool for installing Python packages. ... that pip determines package dependencies using install_requires metadata, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found