Skip to content

Commit 794f8ff

Browse files
committed
GR-45385: migrate patches to metadata.toml patching style
1 parent 794a5d3 commit 794f8ff

File tree

76 files changed

+137
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+137
-142
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,7 @@ def run_cmd(args, msg="", failOnError=True, cwd=None, env=None, quiet=False, **k
167167
def known_packages():
168168
@pip_package()
169169
def pytest(**kwargs):
170-
setuptools(**kwargs)
171-
wcwidth(**kwargs)
172-
pluggy(**kwargs)
173-
atomicwrites(**kwargs)
174-
more_itertools(**kwargs)
175-
attrs(**kwargs)
176-
packaging(**kwargs)
177-
py(**kwargs)
178-
install_from_pypi("pytest==5.1.0", **kwargs)
170+
install_with_pip("pytest", **kwargs)
179171

180172
@pip_package()
181173
def pytest_parallel(**kwargs):
@@ -398,42 +390,19 @@ def ninja(**kwargs):
398390

399391
@pip_package()
400392
def pytz(**kwargs):
401-
install_from_pypi("pytz==2022.2.1", **kwargs)
393+
install_with_pip("pytz", **kwargs)
402394

403395
@pip_package()
404396
def pandas(**kwargs):
405-
pytz(**kwargs)
406-
six(**kwargs)
407-
dateutil(**kwargs)
408-
numpy(**kwargs)
409-
410-
install_from_pypi("pandas==1.5.2", **kwargs)
397+
install_with_pip("pandas", **kwargs)
411398

412399
@pip_package()
413400
def scipy(**kwargs):
414401
install_with_pip("scipy", **kwargs)
415402

416403
@pip_package()
417404
def scikit_learn(**kwargs):
418-
# honor following selected env variables: BLAS, LAPACK, ATLAS
419-
scikit_learn_build_env = {}
420-
for key in ("BLAS", "LAPACK", "ATLAS"):
421-
if key in os.environ:
422-
scikit_learn_build_env[key] = os.environ[key]
423-
424-
if sys.implementation.name == "graalpy":
425-
if not os.environ.get("VIRTUAL_ENV", None):
426-
xit("scikit-learn can only be installed within a venv.")
427-
from distutils.sysconfig import get_config_var
428-
scikit_learn_build_env["LDFLAGS"] = get_config_var("LDFLAGS")
429-
430-
# install dependencies
431-
numpy(**kwargs)
432-
scipy(**kwargs)
433-
joblib(**kwargs)
434-
threadpoolctl(**kwargs)
435-
436-
install_from_pypi("scikit-learn==1.1.3", env=scikit_learn_build_env, **kwargs)
405+
install_with_pip("scikit-learn", **kwargs)
437406

438407
@pip_package()
439408
def cycler(**kwargs):

graalpython/lib-graalpython/patches/Pillow/sdist/Pillow-9.2.0.patch

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[[rules]]
2+
patch = 'PyDriller.patch'

graalpython/lib-graalpython/patches/__scipy/sdist/scipy-1.3.1.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[[rules]]
2+
install-priority = 1
3+
version = '>1.4'
4+
5+
[[rules]]
6+
install-priority = 0
7+
version = '>1.3'
8+
patch = 'atomicwrites.patch'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
version = '== 1.15.1'
3+
patch = 'cffi-1.15.1.patch'

0 commit comments

Comments
 (0)