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.

Author sabakauser
Recipients dstufft, eric.araujo, sabakauser
Date 2019-07-10.09:02:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562749374.67.0.365304267455.issue37541@roundup.psfhosted.org>
In-reply-to
Content
HI,
I am using get_python_lib() to copy certain data files to site-pacakges location while installation of package ibm_db. I am using this function to execute a command as well on one of the shared library @package install location.
So far, I have faced issue with this function in:
virtual env, anaconda python and with pip cache enabled. 

The source can be found at: https://github.com/ibmdb/python-ibmdb/blob/master/IBM_DB/ibm_db/setup.py#L242

When I run through debugger for python setup.py build command, I can see following:
(Pdb) p data_files
[('C:\\Users\\skauser\\Anaconda\\Lib\\site-packages', ['./README.md']), ('C:\\Users\\skauser\\Anaconda\\Lib\\site-packages', ['./CHANGES']), ('C:\\Users\\skauser\\Anaconda\\Lib\\site-packages', ['./LICENSE']), ('C:\\Users\\skauser\\Anaconda\\Lib\\site-packages', ['./config.py.sample'])]

However, in "python setup.py install", this folder structure is created:
C:\Users\skauser\Anaconda\Lib\site-packages\users\skauser\appdata\local\programs\python\python37\Lib and no data files are copied.

If I do : "pip install ." from source directory,
The data_files are copied under "c:\users\skauser\anaconda\lib\site-packages\users\skauser\anaconda\lib\site-packages" when the expectation is to have the files copied under "c:\users\skauser\anaconda\lib\site-packages".

Can you please look into this. 
Although this is not a serious problem for platforms other than mac, But on MAC, I am using this same function get_python_lib()to execute a system command and without this working properly, MAC users are unable to use the python ibm_db driver.

This is blocking! Please help.
History
Date User Action Args
2019-07-10 09:02:54sabakausersetrecipients: + sabakauser, eric.araujo, dstufft
2019-07-10 09:02:54sabakausersetmessageid: <1562749374.67.0.365304267455.issue37541@roundup.psfhosted.org>
2019-07-10 09:02:54sabakauserlinkissue37541 messages
2019-07-10 09:02:54sabakausercreate