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.

Title: data_files are not installed relative to sys.prefix
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.2, Python 3.3, Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: distutils docs: data_files always uses sys.prefix
View: 25592
Assigned To: eric.araujo Nosy List: berker.peksag, eric.araujo, rioch, tarek
Priority: normal Keywords:

Created on 2010-07-23 23:01 by rioch, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg111396 - (view) Author: (rioch) Date: 2010-07-23 23:01
In the disutils documentation for data_files, it states:

"If directory is a relative path, it is interpreted relative to the installation prefix (Python’s sys.prefix for pure-Python packages, sys.exec_prefix  for packages that contain extension modules)."

However, on my system, sys.prefix outputs as '/usr' but the files are installed to '/usr/local'.

OS: Linux Mint 9
Python: 2.6.5
msg138328 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-14 15:23
Thanks for the report.  Do you have a script or test to reproduce the bug?  Otherwise I’ll try to write one.
msg266578 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-05-28 23:56
Issue 25592 is a duplicate of this and but it has a patch that almost ready to commit so I'm closing this one.
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53609
2016-05-28 23:56:58berker.peksagsetstatus: open -> closed

superseder: distutils docs: data_files always uses sys.prefix

nosy: + berker.peksag
messages: + msg266578
resolution: duplicate
stage: test needed -> resolved
2011-06-14 15:23:33eric.araujosetversions: + Python 2.7, Python 3.2, Python 3.3, - Python 2.6
nosy: + eric.araujo

messages: + msg138328

assignee: tarek -> eric.araujo
stage: test needed
2010-07-23 23:01:24riochcreate