| Summary: | distutils installation puts __init__.py into wrong place | ||
|---|---|---|---|
| Product: | pycairo | Reporter: | Lawrence D'Oliveiro <from-freedesktop> |
| Component: | general | Assignee: | 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 |
||
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 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.
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.