Skip to content

Commit d9afedc

Browse files
committed
install setuptools user locally
1 parent 7f85243 commit d9afedc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

graalpython/lib-python/3/distutils/command/install.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
INSTALL_SCHEMES = {
3131
'unix_prefix': {
32-
'purelib': '$base/lib-python/$py_version_major/site-packages',
33-
'platlib': '$platbase/lib-python/$py_version_major/site-packages',
32+
'purelib': '$base/lib/python$py_version_short/site-packages',
33+
'platlib': '$platbase/lib/python$py_version_short/site-packages',
3434
'headers': '$base/include/python$py_version_short$abiflags/$dist_name',
3535
'scripts': '$base/bin',
3636
'data' : '$base',
@@ -291,7 +291,6 @@ def finalize_options(self):
291291
'dist_version': self.distribution.get_version(),
292292
'dist_fullname': self.distribution.get_fullname(),
293293
'py_version': py_version,
294-
'py_version_major': '%d' % sys.version_info[0],
295294
'py_version_short': '%d.%d' % sys.version_info[:2],
296295
'py_version_nodot': '%d%d' % sys.version_info[:2],
297296
'sys_prefix': prefix,

graalpython/site-packages/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ default: install
2323
install:
2424
$(QUIETLY) mx $(OPT_VERBOSE) python3 -m zipfile -e ${SETUPTOOLS_ZIP} .
2525
$(QUIETLY) ${IN_SETUPTOOLS_DIR} mx $(OPT_VERBOSE) python3 bootstrap.py
26-
$(QUIETLY) ${IN_SETUPTOOLS_DIR} mx $(OPT_VERBOSE) python3 setup.py $(OPT_QUIET) install
26+
$(QUIETLY) ${IN_SETUPTOOLS_DIR} mx $(OPT_VERBOSE) python3 setup.py $(OPT_QUIET) install --user
2727

2828
clean:
2929
$(QUIETLY) rm -rf ${SETUPTOOLS_DIR}

mx.graalpython/suite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
"subDir": "graalpython",
245245
"native": True,
246246
"vpath": False,
247-
"results": ["graalpython/lib-python/3/site-packages"],
248247
"output": ".",
249248
"license": ["MIT"],
250249
"defaultBuild": False,

0 commit comments

Comments
 (0)