Hi Matthew: Thank you for the information, but I would like to know how to do that if I want to build a sdist.
Best regards, Leo (Yi Hsiao) Matthew Brett <matthew.br...@gmail.com> 於 2018年8月4日 週六 下午6:46寫道: > 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 > -- Leo (Yi Hsiao), Bioinformatics Internship, i5k workspace, National Agricultural Library, MD, USA Personal Website: https://hsiaoyi0504.github.io/ GitHub: https://github.com/hsiaoyi0504/ LinkedIn: https://www.linkedin.com/in/hsiaoyi0504/