This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: setup()'s package_data not following directory symlink
Type: Stage: resolved
Components: Distutils Versions: Python 3.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: F. Eugene Aumson, dstufft, eric.araujo
Priority: normal Keywords:

Created on 2018-12-14 03:43 by F. Eugene Aumson, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
package_data_symlink_bug.zip F. Eugene Aumson, 2018-12-14 03:43 my setup.py, and logs from installing it in 3.7.0 and 3.7.1
Messages (2)
msg331778 - (view) Author: F. Eugene Aumson (F. Eugene Aumson) Date: 2018-12-14 03:43
I have a package using setup.py.  I want the package to include some data files, which are located in my source directory.  Building my package in my 3.7.0 environment includes the data files as expected.  Building the same exact package in my 3.7.1 environment does NOT include the data files.

Attached are two logs demonstrating the `pip install` output.  Both were produced with this command: `pip uninstall 0x-json-schemas --yes >pip.log && pip install .[dev] --verbose --verbose --verbose >> pip.log`

Also attached is my setup.py script.

Also worth noting is that the directory that contains my data files (src/zero_ex/json_schemas/schemas) is a symlink, which I've verified is resolving properly in both environments.  And, when I replace the symlink with a real folder, containing the same files, then everything works as expected.  So I surmise that the following of symlinks is what's broken here.
msg331781 - (view) Author: F. Eugene Aumson (F. Eugene Aumson) Date: 2018-12-14 05:54
The two environments in question (a 3.7.1 one, and a 3.7.0 one) differ in other ways.  I have done an apples-to-apples comparison of those two versions, in the same local environment, and this issue does not exist.  Sorry for the noise.
History
Date User Action Args
2022-04-11 14:59:09adminsetgithub: 79668
2018-12-14 05:54:31F. Eugene Aumsonsetstatus: open -> closed

messages: + msg331781
stage: resolved
2018-12-14 03:43:32F. Eugene Aumsoncreate