File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 1
1
enable_virtualenv.c
2
- PythonUtil.cpp
Original file line number Diff line number Diff line change 1
1
# The utilities for paddle
2
-
3
- configure_file (PythonUtil.cpp.in ${PROJ_ROOT} /paddle/utils/PythonUtil.cpp)
4
-
5
2
file (GLOB UTIL_HEADERS . *.h)
6
3
file (GLOB UTIL_SOURCES . *.cpp)
7
4
create_resources(enable_virtualenv.py enable_virtualenv.c)
Original file line number Diff line number Diff line change @@ -195,15 +195,6 @@ extern const char enable_virtualenv_py[];
195
195
}
196
196
void initPython (int argc, char ** argv) {
197
197
#ifndef PADDLE_NO_PYTHON
198
- std::string pyHome;
199
- #if defined(__APPLE__) || defined(__OSX__)
200
- pyHome = "/usr/local/Frameworks/Python.framework/Versions/2.7";
201
- Py_SetPythonHome(const_cast<char*>(pyHome.c_str()));
202
- #endif
203
- pyHome = "@PYTHON_INSTALL_DIR@"; // NOLINT
204
- if (!pyHome.empty()) {
205
- Py_SetPythonHome(const_cast<char*>(pyHome.c_str()));
206
- }
207
198
Py_SetProgramName (argv[0 ]);
208
199
Py_Initialize ();
209
200
PySys_SetArgv (argc, argv);
You can’t perform that action at this time.
0 commit comments