File tree Expand file tree Collapse file tree 4 files changed +39
-14
lines changed Expand file tree Collapse file tree 4 files changed +39
-14
lines changed Original file line number Diff line number Diff line change 29
29
30
30
INSTALL_SCHEMES = {
31
31
'unix_prefix' : {
32
- 'purelib' : '$base/lib/ python$py_version_short /site-packages' ,
33
- 'platlib' : '$platbase/lib/ python$py_version_short /site-packages' ,
32
+ 'purelib' : '$base/lib- python/$py_version_major /site-packages' ,
33
+ 'platlib' : '$platbase/lib- python/$py_version_major /site-packages' ,
34
34
'headers' : '$base/include/python$py_version_short$abiflags/$dist_name' ,
35
35
'scripts' : '$base/bin' ,
36
36
'data' : '$base' ,
@@ -291,6 +291,7 @@ def finalize_options(self):
291
291
'dist_version' : self .distribution .get_version (),
292
292
'dist_fullname' : self .distribution .get_fullname (),
293
293
'py_version' : py_version ,
294
+ 'py_version_major' : '%d' % sys .version_info [0 ],
294
295
'py_version_short' : '%d.%d' % sys .version_info [:2 ],
295
296
'py_version_nodot' : '%d%d' % sys .version_info [:2 ],
296
297
'sys_prefix' : prefix ,
Original file line number Diff line number Diff line change 1
1
.PHONY : clean install
2
2
3
- SHELL = /bin/bash
4
- SITE_PATH = ../lib-python/3/site-packages
5
- SETUPTOOLS_VERSION = 40.4.3
6
3
7
- default : install
4
+ SETUPTOOLS_VERSION = 40.6.3
5
+ PYTHON_VERSION = 3.7
6
+
7
+ SETUPTOOLS_DIR = setuptools-${SETUPTOOLS_VERSION}
8
+ IN_SETUPTOOLS_DIR = cd ${SETUPTOOLS_DIR} &&
9
+ SITE_PATH = ../lib-python/3/site-packages/
10
+
8
11
9
- install : ${SITE_PATH} ${SITE_PATH}/setuptools.pth
12
+ QUIETLY$(MX_VERBOSE) = @
13
+ OPT_QUIET$(MX_VERBOSE) = --quiet
14
+ OPT_VERBOSE =
10
15
11
- ${SITE_PATH} :
12
- mkdir -p ${SITE_PATH}
16
+ ifeq ($(MX_VERBOSE ) ,y)
17
+ OPT_VERBOSE = -v
18
+ endif
19
+
20
+
21
+ default : install
13
22
14
- ${SITE_PATH}/setuptools.pth :
15
- PYTHONPATH= ${SITE_PATH} python3 -m easy_install --always-copy --exclude-scripts --always-unzip --install-dir ${SITE_PATH} setuptools== ${SETUPTOOLS_VERSION}
16
- find ${SITE_PATH} -name " *.pyc " -exec rm " {} " " ; "
17
- rm -rf ${SITE_PATH} /__pycache__
23
+ install :
24
+ $( QUIETLY ) mx $( OPT_VERBOSE ) python3 -m zipfile -e ${SETUPTOOLS_ZIP} .
25
+ $( QUIETLY ) ${IN_SETUPTOOLS_DIR} mx $( OPT_VERBOSE ) python3 bootstrap.py
26
+ $( QUIETLY ) ${IN_SETUPTOOLS_DIR} mx $( OPT_VERBOSE ) python3 setup.py $( OPT_QUIET ) install
18
27
19
28
clean :
20
- rm -rf ${SITE_PATH}
29
+ $(QUIETLY ) rm -rf ${SETUPTOOLS_DIR}
30
+ $(QUIETLY ) rm -rf ${SITE_PATH} /*
Original file line number Diff line number Diff line change 84
84
#
85
85
# --------------------------------------------------------------------------------------------------------------
86
86
"libraries" : {
87
+ "SETUPTOOLS" : {
88
+ "urls" : [
89
+ "https://github.com/pypa/setuptools/archive/v40.6.3.zip" ,
90
+ ],
91
+ "sha1" : "7a5960b8062ddbf0c0e79f806e23785d55fec3c8" ,
92
+ }
87
93
},
88
94
89
95
# --------------------------------------------------------------------------------------------------------------
242
248
"output" : "." ,
243
249
"license" : ["MIT" ],
244
250
"defaultBuild" : False ,
251
+ "buildEnv" : {
252
+ "SETUPTOOLS_ZIP" : "<path:SETUPTOOLS>" ,
253
+ },
254
+ "buildDependencies" : [
255
+ "SETUPTOOLS" ,
256
+ "GRAALPYTHON-LAUNCHER" ,
257
+ "GRAALPYTHON" ,
258
+ ],
245
259
},
246
260
},
247
261
You can’t perform that action at this time.
0 commit comments