Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#29943 closed defect (fixed)

py27-pyopencl does not make sure it only uses python2.7

Reported by: schmunk@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: py27-pyopencl

Description (last modified by ci42)

:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-pyopencl/work/pyopencl-2011.1.1" && ./configure.py --prefix=/opt/local --cl-enable-gl'
:info:configure /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-pyopencl/work/pyopencl-2011.1.1/aksetup_helper.py:702: Warning: 'as' will become a reserved keyword in Python 2.6
:info:configure Traceback (most recent call last):
:info:configure   File "./configure.py", line 3, in <module>
:info:configure     from aksetup_helper import configure_frontend
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-pyopencl/work/pyopencl-2011.1.1/aksetup_helper.py", line 702
:info:configure     except OSError as e:
:info:configure                     ^
:info:configure SyntaxError: invalid syntax

Change History (4)

comment:1 in reply to:  description Changed 13 years ago by ci42

Cc: snc@… added
Description: modified (diff)
Keywords: python opencl upgrade removed

Replying to schmunk@…:

Please remind to cc the maintainer.

As fresh install on my machine works fine. It seems that you have a outdated python installation (< 2.6) What is the output of ?

python --version

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Cc: snc@… removed
Owner: changed from macports-tickets@… to snc@…
Summary: py27-pyopencl can not be upgradedpy27-pyopencl does not make sure it only uses python2.7

It shouldn't matter what other versions of python are installed since this port depends on python27. Apparently the port is not ensuring that configure.py is run in the right interpreter.

comment:3 Changed 13 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Force use of the correct python for configure phase in r79970.

comment:4 Changed 13 years ago by schmunk@…

Confirmed, thank you.

Note: See TracTickets for help on using tickets.