Opened 4 years ago

Closed 4 years ago

#16902 closed defect (implemented)

chutney fails to find python2 on stock OS X install

Reported by: teor Owned by: teor
Priority: Medium Milestone:
Component: Core Tor/Chutney Version:
Severity: Keywords: SponsorS osx
Cc: Actual Points:
Parent ID: #16949 Points:
Reviewer: Sponsor:


OS X Yosemite's /usr/bin/python is python 2.7.10, but OS X doesn't provide a python2 symlink (which chutney expects).

This causes chutney to fail out of the box on OS X.

Child Tickets

Change History (4)

comment:1 Changed 4 years ago by teor

Keywords: SponsorS osx added
Owner: changed from nickm to teor
Status: newaccepted

(It will fail on any platform without a python2 command, even if python exists.)

comment:2 Changed 4 years ago by teor

Status: acceptedneeds_review

Branch: fallback-to-python

  • If $PYTHON isn't set:
    • Use "command" to check for python2, and use it if it exists
    • Use "command" to check for python, and use it if it exists
    • (Skip python3, it doesn't work due to #16904)
  • If neither works, use the original default of python2

comment:3 Changed 4 years ago by teor

Parent ID: #16949

comment:4 Changed 4 years ago by nickm

Resolution: implemented
Status: needs_reviewclosed

looks good; merged it!

Note: See TracTickets for help on using tickets.