Search code examples
pythonpippython-wheelpython-cffi

pip install -d not creating wheel for cffi


I'm trying to create "offline package" for python code.

I'm running pip install -d <dest dir> -r requirements.txt The thing is that cffi==1.6.0 (inside requirements.txt) doesn't get built into a wheel.

Is there a way I can make it? (I trying to avoid the dependency in gcc in the target machine)


Solution

  • install -d just downloads the packages; it doesn't build them. To force everything to be built into wheels, use the pip wheel command instead:

    pip wheel -w <dir> -r requirements.txt