Bug 89160

Summary: distutils installation puts __init__.py into wrong place
Product: pycairo Reporter: Lawrence D'Oliveiro <from-freedesktop>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to fix incorrect destination for __init__.py
patch to fix incorrect destination for __init__.py

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.