Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7320] GYB is run with python, not python2.7 #49868

Open
swift-ci opened this issue Mar 31, 2018 · 1 comment
Open

[SR-7320] GYB is run with python, not python2.7 #49868

swift-ci opened this issue Mar 31, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. cmake good first issue Good for newcomers

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7320
Radar None
Original Reporter sanxiyn (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, CMake, StarterBug
Assignee None
Priority Medium

md5: a456e83bcda5542ee8cf2382f8fa9b21

Issue Description:

#1535 made GYB run with python2.7, but #6463 effectively reverted the change because GYB is run with PYTHON_EXECUTABLE instead of using shebang line. This causes the problem 1535 fixed to reappear.

@belkadan
Copy link
Contributor

belkadan commented Apr 3, 2018

Sounds like the way to fix this is to change the following line in the top-level CMakeLists.txt:

find_package(PythonInterp REQUIRED)

to

find_package(PythonInterp 2.7 REQUIRED)
if(…) # check if 2.7 wasn't found
  find_package(PythonInterp 3 REQUIRED)
endif()

and then test it, because I just wrote that here without trying it myself.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. cmake good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants