Bug 57455 - Installation configuration ignores supplied python version
Summary: Installation configuration ignores supplied python version
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: 2012-11-23 12:32 UTC by Evert
Modified: 2017-07-05 15:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Evert 2012-11-23 12:32:41 UTC
I have Python 3 and Python 2 installed next to each other. As the installation guide suggest, I run waf as follows:

    $ python3 ./waf configure

with the following result:

  ./options()
Setting top to                           : /home/evertr/Downloads/pycairo-1.10.0 
Setting out to                           : /home/evertr/Downloads/pycairo-1.10.0/build_directory 
  ./configure()
Checking for 'gcc' (c compiler)          : ok 
Checking for program python              : /usr/bin/python 
python executable '/usr/bin/python' different from sys.executable '/data/evertr/sw/bin/python3'
Checking for python version              : (2, 6, 6, 'final', 0) 
The python version is too old, expecting (3, 1, 0)
(complete log in /home/evertr/Downloads/pycairo-1.10.0/build_directory/config.log)


Along the way, waf appears to ignore my specified Python 3 version, and decides to simply pick up the system installed one.
Comment 1 Simon Sapin 2012-12-18 08:46:23 UTC
The way to specify the python version in waf is through an environment variable. The version used to run waf itself is unrelated.

Example: PYTHON=python3.3 ./waf configure
Comment 2 Christoph Reiter 2017-07-05 15:24:54 UTC
Since 1.11 pycairo uses distutils for building. There is a good chance that
this bug no longer occurs with the new system. If there are still problems
please file a bug: https://github.com/pygobject/pycairo/issues


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.