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: distutil bdist hardcodes the python location
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: tarek Nosy List: devilwolf, eric.araujo, loewis, tarek, techtonik
Priority: normal Keywords:

Created on 2004-11-03 03:44 by devilwolf, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (8)
msg60594 - (view) Author: Steve Menard (devilwolf) Date: 2004-11-03 03:44
Whenever I package a module I distribute and uses
"python setup.py bdist", the resulting zip files
contains the path to my python installation directory
(minus the driver letter under windows).

This means that under windows, the directory in the zip
file is "tools/python/Lib/site-packages/...". Under
linux, it ends up being
"./usr/lib/python2.3/site-packages/...".

This is a bother. There is no way for me to know where
the user's actual python will be. USers currently have
to e=unzip in a temp directory and then move the files
to site-packages manually.

I think the zip file should actually remove everything
up to "site-packages". Thus the zip could be unzipped
directly in the correct location.

Or alternately, like sdist, unzip in a temp directory
and have the user run "python setup.py install" on it.
msg60595 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-11-07 10:15
Logged In: YES 
user_id=21627

I recommend not to use the bdist command. Instead, on
Windows, use bdist_wininst. On Linux, either use bdist_rpm,
or refrain from building binary distributions (instead,
instruct users how to build from source).
msg101456 - (view) Author: anatoly techtonik (techtonik) Date: 2010-03-21 20:50
I am creating packages for PyPI and they all are created wrong. If the module is pure Python - 'bdist' should be equal to 'sdist'.
msg122436 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-26 04:52
If the distribution is pure Python, you can upload an sdist to PyPI.

bdist’s behavior is certainly not very useful, but we’re bound by compatibility.  Closing as wontfix.
msg122437 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-26 04:54
Let me add that we welcome suggestions about making bdist better in distutils2.
msg122454 - (view) Author: anatoly techtonik (techtonik) Date: 2010-11-26 13:20
As I can't reopen this issue, I'd like to ask for another opinion before closing this ticket. I think it's closed prematurely. For the bare minimum there should be a link to corresponding issue in distutils2 project.
msg122456 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2010-11-26 14:08
I am +1 with what Eric said. I'd suggest that you send a mail to teh distutils2 development mailing list to make some proposals.
msg122486 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-26 23:56
Distutils2 bugs are tracked here (bugs.python.org), feel free to open a feature request for the Distutils2 component.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 41118
2010-11-26 23:56:02eric.araujosetmessages: + msg122486
2010-11-26 14:09:00tareksetmessages: + msg122456
2010-11-26 13:20:56techtoniksetmessages: + msg122454
2010-11-26 04:54:24eric.araujosetmessages: + msg122437
2010-11-26 04:52:58eric.araujosetstatus: open -> closed
resolution: wont fix
messages: + msg122436

stage: needs patch -> resolved
2010-08-19 18:24:55BreamoreBoysetstage: needs patch
type: behavior
versions: + Python 3.1, Python 3.2, - Python 2.6
2010-03-21 20:54:52eric.araujosetnosy: + eric.araujo
2010-03-21 20:50:10techtoniksetnosy: + techtonik
messages: + msg101456
2010-03-21 20:47:10techtoniksetversions: + Python 2.6, Python 2.7
2009-02-11 02:56:08ajaksu2setassignee: tarek
components: + Distutils, - None
nosy: + tarek
2004-11-03 03:44:52devilwolfcreate