0

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)

Machavity
  • 30,841
  • 27
  • 92
  • 100
Boaz
  • 4,864
  • 12
  • 50
  • 90

1 Answers1

0

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
jwodder
  • 54,758
  • 12
  • 108
  • 124