You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Gabor Somogyi (Jira)" <ji...@apache.org> on 2023/08/28 11:19:00 UTC

[jira] [Created] (FLINK-32981) Add python dynamic Flink home detection

Gabor Somogyi created FLINK-32981:
-------------------------------------

             Summary: Add python dynamic Flink home detection
                 Key: FLINK-32981
                 URL: https://issues.apache.org/jira/browse/FLINK-32981
             Project: Flink
          Issue Type: Improvement
          Components: API / Python
    Affects Versions: 1.19.0
            Reporter: Gabor Somogyi


During `pyflink` library compilation Flink home is calculated from the provided `pyflink` version which is normally something like: `1.19.dev0`.  Such case `.dev0` is replaced to `-SNAPSHOT` which ends-up in hardcoded home directory: `../../flink-dist/target/flink-1.18-SNAPSHOT-bin/flink-1.18-SNAPSHOT`. This is fine as long as one uses the basic version types described [here](https://peps.python.org/pep-0440/#developmental-releases). In order to support any kind of `pyflink` version one can dynamically find out the Flink home directory through globbing.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)