File tree Expand file tree Collapse file tree 4 files changed +35
-7
lines changed Expand file tree Collapse file tree 4 files changed +35
-7
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -304,8 +304,9 @@ def getsitepackages(prefixes=None):
304
304
seen .add (prefix )
305
305
306
306
if os .sep == '/' :
307
- sitepackages .append (os .path .join (prefix , "lib" ,
308
- "python%d.%d" % sys .version_info [:2 ],
307
+ # TRUFFLE: our path for system site-packages is slightly different
308
+ sitepackages .append (os .path .join (prefix , "lib-python" ,
309
+ "%d" % sys .version_info [0 ],
309
310
"site-packages" ))
310
311
else :
311
312
sitepackages .append (prefix )
@@ -528,9 +529,8 @@ def main():
528
529
if ENABLE_USER_SITE is None :
529
530
ENABLE_USER_SITE = check_enableusersite ()
530
531
531
- # TRUFFLE TODO requires _sysconfigdata__* modules
532
- #known_paths = addusersitepackages(known_paths)
533
- #known_paths = addsitepackages(known_paths)
532
+ known_paths = addusersitepackages (known_paths )
533
+ known_paths = addsitepackages (known_paths )
534
534
setquit ()
535
535
setcopyright ()
536
536
sethelper ()
Original file line number Diff line number Diff line change
1
+ .PHONY : clean install
2
+
3
+ SHELL = /bin/bash
4
+ SITE_PATH = ../lib-python/3/site-packages
5
+ SETUPTOOLS_VERSION = 40.4.3
6
+
7
+ default : install
8
+
9
+ install : ${SITE_PATH} ${SITE_PATH}/setuptools.pth
10
+
11
+ ${SITE_PATH} :
12
+ mkdir -p ${SITE_PATH}
13
+
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__
18
+
19
+ clean :
20
+ rm -rf ${SITE_PATH}
Original file line number Diff line number Diff line change 226
226
],
227
227
"license" : ["PSF-License" ],
228
228
},
229
+
230
+ "site-packages" : {
231
+ "subDir" : "graalpython" ,
232
+ "native" : True ,
233
+ "vpath" : False ,
234
+ "results" : ["graalpython/lib-python/3/site-packages" ],
235
+ "output" : "." ,
236
+ "license" : ["MIT" ],
237
+ "defaultBuild" : False ,
238
+ },
229
239
},
230
240
231
241
"licenses" : {
You can’t perform that action at this time.
0 commit comments