You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2023/11/14 02:52:07 UTC
(flink) branch release-1.17 updated: [FLINK-33529][python] Updated GET_SITE_PACKAGES_SCRIPT to include purelib
This is an automated email from the ASF dual-hosted git repository.
dianfu pushed a commit to branch release-1.17
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.17 by this push:
new 01b1ce4f349 [FLINK-33529][python] Updated GET_SITE_PACKAGES_SCRIPT to include purelib
01b1ce4f349 is described below
commit 01b1ce4f349315e1942b3290c0fa81ab0a6b183e
Author: Prabhu Joseph <jo...@amazon.com>
AuthorDate: Mon Nov 13 15:23:57 2023 +0530
[FLINK-33529][python] Updated GET_SITE_PACKAGES_SCRIPT to include purelib
This closes #23700.
---
.../org/apache/flink/python/util/PythonEnvironmentManagerUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flink-python/src/main/java/org/apache/flink/python/util/PythonEnvironmentManagerUtils.java b/flink-python/src/main/java/org/apache/flink/python/util/PythonEnvironmentManagerUtils.java
index b271c41a63f..2fa409facd2 100644
--- a/flink-python/src/main/java/org/apache/flink/python/util/PythonEnvironmentManagerUtils.java
+++ b/flink-python/src/main/java/org/apache/flink/python/util/PythonEnvironmentManagerUtils.java
@@ -56,7 +56,8 @@ public class PythonEnvironmentManagerUtils {
private static final String GET_SITE_PACKAGES_PATH_SCRIPT =
"import sys;"
+ "import sysconfig;"
- + "print(sysconfig.get_path('platlib', vars={'base': sys.argv[1], 'platbase': sys.argv[1]}))";
+ + "print(sysconfig.get_path('platlib', vars={'base': sys.argv[1], 'platbase': sys.argv[1]}));"
+ + "print(sysconfig.get_path('purelib', vars={'base': sys.argv[1], 'platbase': sys.argv[1]}));";
private static final String GET_RUNNER_DIR_SCRIPT =
"import pyflink;"