user2201041
user2201041

Reputation:

Create wheel without building dependencies

I have a sample project:

test/
    - __init__.py
    - module.py
    - setup.py

setup.py is just

from setuptools import setup

setup(name='test', install_requires=['numpy'])

Then when I call pip wheel ., it automatically makes a wheel for numpy. Can I make it not do that? It's my understanding that when you install a wheel, it will automatically go download and install any missing dependencies. Is the numpy wheel needed for making my test wheel?

Upvotes: 5

Views: 4248

Answers (1)

wim
wim

Reputation: 362497

That's just the way that pip rolls, but if you wheely want to omit the numpy build then you can turn around and give this command a spin:

pip wheel --no-deps .

Note: if the correct numpy wheel was already existing, it would be skipped anyway. No need to reinvent the thing...

Upvotes: 12

Related Questions