Skip to content

Commit d1fb7f9

Browse files
committed
[GR-53726] Allow packages to override distribution spec
PullRequest: graalpython/3318
2 parents efcb768 + 485bdbe commit d1fb7f9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

graalpython/lib-graalpython/patches/ray/ray-2.9.1.patch

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ index c9ba801319..6c25d57934 100644
3232
# Thread sanitizer configuration:
3333
build:tsan --per_file_copt="-bazel-ray/external/com_github_antirez_redis/.*$@-fsanitize=thread"
3434
diff --git a/bazel/ray.bzl b/bazel/ray.bzl
35-
index 4cd1aa2390..d051a6a36b 100644
35+
index 4cd1aa2390..95250a422c 100644
3636
--- a/bazel/ray.bzl
3737
+++ b/bazel/ray.bzl
38-
@@ -30,6 +30,10 @@ PYX_COPTS = select({
38+
@@ -30,6 +30,9 @@ PYX_COPTS = select({
3939
"//conditions:default": [
4040
# Ignore this warning since CPython and Cython have issue removing deprecated tp_print on MacOS
4141
"-Wno-deprecated-declarations",
4242
+ "-Wno-unused-variable",
4343
+ "-Wno-unused-function",
44-
+ "-Wno-unused-but-set-parameter",
4544
+ "-Wno-sign-compare",
4645
],
4746
}) + select({

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def finalize_options(self):
355355
# module distribution is pure or not. Of course, if the user
356356
# already specified install_lib, use their selection.
357357
if self.install_lib is None:
358-
if self.distribution.ext_modules: # has extensions: non-pure
358+
if self.distribution.has_ext_modules(): # has extensions: non-pure
359359
self.install_lib = self.install_platlib
360360
else:
361361
self.install_lib = self.install_purelib

0 commit comments

Comments
 (0)