Hi, On Sat, Aug 4, 2018 at 11:32 PM, 蕭毅 <hsiaoyi0...@gmail.com> wrote: > Hi there, > > I have a question about how to feed some files into lib directory inside the > virtual environment. > > For example, when I create a virtual environment through > > python3 -m venv evn > > > Then I will get a file directory like this: > > env_test > ├── bin/ > ├── include/ > ├── lib/ > ├── pip-selfcheck.json > └── pyvenv.cfg > > and I have to put some files (*.dylib) into lib/ to make it can be searched > during run-time. > > How should I set them in setup.py or other places ?
Did you discover the `delocate` utility? https://pypi.org/project/delocate/ If you're just shipping .dylib files that are linked to Python extensions, delocate will do the copy / relink step when building wheels. Cheers, Matthew