Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
a2264e40
Commit
a2264e40
authored
7 years ago
by
Kitty Barnett
Browse files
Options
Downloads
Patches
Plain Diff
Use the current virtualenv's python rather than the system default
-> Windows-only --HG-- branch : Viewer-Build
parent
9e446314
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/cmake/Python.cmake
+24
-15
24 additions, 15 deletions
indra/cmake/Python.cmake
with
24 additions
and
15 deletions
indra/cmake/Python.cmake
+
24
−
15
View file @
a2264e40
...
@@ -5,21 +5,30 @@ set(PYTHONINTERP_FOUND)
...
@@ -5,21 +5,30 @@ set(PYTHONINTERP_FOUND)
if
(
WINDOWS
)
if
(
WINDOWS
)
# On Windows, explicitly avoid Cygwin Python.
# On Windows, explicitly avoid Cygwin Python.
find_program
(
PYTHON_EXECUTABLE
if
(
DEFINED ENV{VIRTUAL_ENV}
)
NAMES python25.exe python23.exe python.exe
find_program
(
PYTHON_EXECUTABLE
NO_DEFAULT_PATH
# added so that cmake does not find cygwin python
NAMES python.exe
PATHS
PATHS
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
"$ENV{VIRTUAL_ENV}
\\
scripts"
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
NO_DEFAULT_PATH
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
)
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
else
()
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
find_program
(
PYTHON_EXECUTABLE
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
NAMES python25.exe python23.exe python.exe
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
NO_DEFAULT_PATH
# added so that cmake does not find cygwin python
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
PATHS
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
)
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
[HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
)
endif
()
elseif
(
EXISTS /etc/debian_version
)
elseif
(
EXISTS /etc/debian_version
)
# On Debian and Ubuntu, avoid Python 2.4 if possible.
# On Debian and Ubuntu, avoid Python 2.4 if possible.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment