Bug 89160 - distutils installation puts __init__.py into wrong place
Summary: distutils installation puts __init__.py into wrong place
Status: RESOLVED FIXED
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 03:06 UTC by Lawrence D'Oliveiro
Modified: 2017-07-05 15:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to fix incorrect destination for __init__.py (748 bytes, text/plain)
2015-02-16 03:06 UTC, Lawrence D'Oliveiro
Details
patch to fix incorrect destination for __init__.py (750 bytes, patch)
2015-02-17 04:53 UTC, Lawrence D'Oliveiro
Details | Splinter Review

Description Lawrence D'Oliveiro 2015-02-16 03:06:29 UTC
Created attachment 113514 [details]
patch to fix incorrect destination for __init__.py

When doing a “python3.4 setup.py install” on Pycairo for Python 3, the Cairo extension module is copied by default into /usr/local/lib/python3.4/dist-packages/cairo, but __init__.py goes to /usr/lib/python3/dist-packages/cairo/, overwriting the one from the standard Debian package.

The enclosed patch fixes this, so __init__.py is copied to the right place. It also removes some unneeded imports and turns off executable protections on setup.py, since it should be executed by explicitly invoking the right version of the Python 3.x interpreter.
Comment 1 Lawrence D'Oliveiro 2015-02-17 04:53:01 UTC
Created attachment 113549 [details] [review]
patch to fix incorrect destination for __init__.py

Replacement for previous patch, removing further unneeded imports as consequence of actual bug fix
Comment 2 Christoph Reiter 2017-07-05 15:06:07 UTC
This is fixed since 1.11


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.