New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20271 (closed enhancement: fixed)

Opened 3 years ago

Last modified 9 months ago

python_select should create symlinks for all executables installed by python

Reported by: macports@… Owned by: raimue@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: blb@…, erickt@…, mww@…, mcalhoun@…
Port: python_select

Description

python_select does not create a symlink for easy_install like the other Python binaries. If the default interpreter is not the same minor version as the interpreter in the shebang line, easy_install will fail late with an unhelpful error message.

python_select also does not create a symlink for 2to3, but that tool appears not to be affected by the default interpreter.

Change History

  Changed 3 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to raimue@…
  • type changed from defect to enhancement

  Changed 3 years ago by raimue@…

  • status changed from new to assigned

follow-up: ↓ 5   Changed 3 years ago by raimue@…

  • cc blb@…, erickt@…, mww@… added

CC'ing maintainers of python{24,25,26,30,31}: I am going to make the necessary changes to both python_select and your ports if nobody objects.

2to3 is definitely a good idea. But I am unsure about easy_install. When using this application, won't it interfere with MacPorts installed modules and should therefore not be used? Please give advice.

  Changed 3 years ago by blb@…

  • cc mcalhoun@… added

2to3 is fine, but note that easy_install comes from setuptools, not the base python* ports.

in reply to: ↑ 3   Changed 2 years ago by speed.rob@…

Replying to raimue@…:

2to3 is definitely a good idea. But I am unsure about easy_install. When using this application, won't it interfere with MacPorts installed modules and should therefore not be used? Please give advice.

The easy_install tool is installed with setuptools regardless, creating a symlink would only serve to override the OS X copy (which installs modules into a path that the Macports-distributed Python doesn't use). In any case, Python was designed to have modules installed in this way. It's simply not reasonable to expect every python module to have a package in Macports.

  Changed 9 months ago by jmr@…

  • summary changed from python_select should create symlinks for easy_install, 2to3 to python_select should create symlinks for all executables installed by python

  Changed 9 months ago by jmr@…

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.