Skip to content

Commit 010eb23

Browse files
committed
Restore easyinstall.py.in File. Move It Into darling/src.
1 parent 8b5c92c commit 010eb23

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function(easyinstall python_version package_name package_version)
6868
set(PACKAGE_NAME ${package_name})
6969
set(PACKAGE_VERSION ${package_version})
7070

71-
configure_file(${CMAKE_SOURCE_DIR}/src/external/python_modules/easyinstall.py.in "${local_file}")
71+
configure_file(${CMAKE_SOURCE_DIR}/src/external/python_modules/darling/src/easyinstall.py.in "${local_file}")
7272
install(PROGRAMS "${local_file}" DESTINATION libexec/darling/usr/bin RENAME "${package_name}-${python_version}")
7373
endfunction(easyinstall)
7474

darling/src/easyinstall.py.in

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!@EXEPATH@
2+
import sys
3+
sys.argv[0] = sys.argv[0].replace('-@PYTHON_VERSION@', '')
4+
# EASY-INSTALL-ENTRY-SCRIPT: 'xattr==0.6.4','console_scripts','xattr'
5+
__requires__ = '@PACKAGE_NAME@==@PACKAGE_VERSION@'
6+
import sys
7+
from pkg_resources import load_entry_point
8+
9+
if __name__ == '__main__':
10+
sys.exit(
11+
load_entry_point('@PACKAGE_NAME@==@PACKAGE_VERSION@', 'console_scripts', '@PACKAGE_NAME@')()
12+
)
13+

0 commit comments

Comments
 (0)