[Distutils] Accessing package data files in wheels

Justin Uang justin.uang at gmail.com
Sat Jun 27 20:52:15 CEST 2015


Hi,

What is the recommended way to get access to a data file in my package if
I'm using a wheel? pkg_resources seems like it's mainly useful because eggs
might be used in a zipped form, but for wheels, I'm guaranteed that the
data will be unpacked into a directory structure right? In that case,
should I just use __file__ to manually find the location of the file?

I'm assuming I can still use pkg_resources, but it feels like I'm adding an
unnecessary dependency on setuptools, given that setuptools isn't needed
during installation but only when building the wheel.

Thanks!

Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150627/9977c90b/attachment.html>


More information about the Distutils-SIG mailing list