Showing content from http://mail.python.org/pipermail/python-dev/attachments/20141118/77a3d76d/attachment.html below:
<div dir="ltr">I feel that you've misunderstood my request entirely. I'm not trying to report an issue, just requesting help understanding how the resulting package relates to version-controlled source. It's possible that I have the wrong source entirely.<div><br></div><div>Your comments seem to indicate that you believe I've clobbered my installation with something other than the standard ubuntu package. I attempt to show otherwise below. I'm pretty confident that the source on disk ('LIBPL') represents the package that all trusty users have. My aim is to track down what (version-controlled) change caused this function to change between precise and trusty.</div><div><br></div><div><br></div><div><div>$ ls -l /usr/lib/python2.7/sysconfig.py</div><div>-rw-r--r-- 1 root root 25048 Mar 22 Â 2014 /usr/lib/python2.7/sysconfig.py</div><div><br></div><div>$ sudo touch !$<br></div><div>sudo touch /usr/lib/python2.7/sysconfig.py</div><div><br></div><div>$ ls -l /usr/lib/python2.7/sysconfig.py<br></div><div>-rw-r--r-- 1 root root 25048 Nov 18 08:57 /usr/lib/python2.7/sysconfig.py</div><div><br></div><div>$ sudo apt-get install --reinstall libpython2.7-minimal<br></div><div><snip></div><div>Preparing to unpack .../libpython2.7-minimal_2.7.6-8_amd64.deb ...<br></div><div>Unpacking libpython2.7-minimal:amd64 (2.7.6-8) over (2.7.6-8) ...</div><div>Setting up libpython2.7-minimal:amd64 (2.7.6-8) ...</div><div><br></div><div>$ ls -l /usr/lib/python2.7/sysconfig.py<br></div><div>-rw-r--r-- 1 root root 25048 Mar 22 Â 2014 /usr/lib/python2.7/sysconfig.py</div><div><br></div><div>$ grep -A3 def\ _get_makefile_filename /usr/lib/python2.7/sysconfig.py<br></div><div>def _get_makefile_filename():</div><div>Â Â if _PYTHON_BUILD:</div><div>Â Â Â Â return os.path.join(_PROJECT_BASE, "Makefile")</div><div>Â Â return os.path.join(get_config_var('LIBPL'), "Makefile")</div><div><br></div><div>$ apt-cache show libpython2.7-dev<br></div><div>Package: libpython2.7-dev</div><div>Priority: optional</div><div>Section: libdevel</div><div>Installed-Size: 32956</div><div>Maintainer: Ubuntu Developers <<a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>></div><div>Original-Maintainer: Matthias Klose <<a href="mailto:doko@debian.org">doko@debian.org</a>></div><div>Architecture: amd64</div><div>Source: python2.7</div><div>Version: 2.7.6-8</div><div>Replaces: python2.7 (<< 2.7-3), python2.7-dev (<< 2.7.3-10), python2.7-minimal (<< 2.7.3-10)</div><div>Depends: libpython2.7-stdlib (= 2.7.6-8), libpython2.7 (= 2.7.6-8), libexpat1-dev</div><div>Pre-Depends: multiarch-support</div><div>Recommends: libc6-dev | libc-dev</div><div>Filename: pool/main/p/python2.7/libpython2.7-dev_2.7.6-8_amd64.deb</div><div>Size: 22005790</div><div>MD5sum: 6b088fe5ee9bdb69296447a0b51f926e</div><div>SHA1: 6356820a6b7fce13e1539dbe88b4292a0c8f2a8d</div><div>SHA256: 646170fe0b0976d38252e474a8ac4ef5d52af93158b5a489da92c2225fbd1640</div><div>Description-en: Header files and a static library for Python (v2.7)</div><div>Â Header files, a static library and development tools for building</div><div>Â Python (v2.7) modules, extending the Python interpreter or embedding</div><div>Â Python (v2.7) in applications.</div><div>Â .</div><div>Â Maintainers of Python packages should read README.maintainers.</div><div>Â .</div><div>Â This package contains development files. It is normally not</div><div>Â used on it's[sic] own, but as a dependency of python2.7-dev.</div><div>Description-md5: 2ef5e0390998d9ab1872bc0f6b694ff7</div><div>Multi-Arch: same</div><div>Bugs: <a href="https://bugs.launchpad.net/ubuntu/+filebug">https://bugs.launchpad.net/ubuntu/+filebug</a></div><div>Origin: Ubuntu</div><div>Supported: 5y</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 2:56 AM, Matthias Klose <span dir="ltr"><<a href="mailto:doko@ubuntu.com" target="_blank">doko@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11/16/2014 11:23 PM, Buck Evan wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
This particular patch caused virtualenv issue #118 and a subsequent<br>
workaround:<br>
<a href="http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/python2.7/trusty/view/head:/debian/patches/distutils-install-layout.diff#L281" target="_blank">http://bazaar.launchpad.net/~<u></u>ubuntu-branches/ubuntu/trusty/<u></u>python2.7/trusty/view/head:/<u></u>debian/patches/distutils-<u></u>install-layout.diff#L281</a><br></span>
<<a href="http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/python2.7/trusty-proposed/view/head:/debian/patches/distutils-install-layout.diff#L281" target="_blank">http://bazaar.launchpad.net/~<u></u>ubuntu-branches/ubuntu/trusty/<u></u>python2.7/trusty-proposed/<u></u>view/head:/debian/patches/<u></u>distutils-install-layout.diff#<u></u>L281</a>><span class=""><br>
<br>
Although this patch sits on the trusty branch of cpython patckaging, in<br>
point of fact on that line i have `return<br>
os.path.join(get_config_var('<u></u>LIBPL'), "Makefile")`. I see that other<br>
patches in the same project also touch this line, but none of them have<br>
this LIBPL code that I find in my actual installation.<br>
</span></blockquote>
<br>
I'm not sure what issue you have here. Indeed, as Ned suggested, best thing would be to open a bug report in Launchpad [1].<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can any of you all help me understand what's going on here? I'm trying to<br>
pinpoint exactly when/how the problematic code (.replace("/usr/local","/usr")<br>
went away.<br>
</blockquote>
<br></span>
See the README.Debian. In the past people installed packages into the system path using "sudo python setup.py --install", and breaking applications shipped with Ubuntu. This avoids accidental installation of such packages. Unfortunately you can do this again with pip, because pip acting on the system python silently overwrites system installed python modules.<br>
<br>
 Matthias<br>
<br>
[1] <a href="https://bugs.launchpad.net/ubuntu/+source/python2.7/+filebug" target="_blank">https://bugs.launchpad.net/<u></u>ubuntu/+source/python2.7/+<u></u>filebug</a><br>
<br>
</blockquote></div><br></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4