[FLINK-32971][python] Add proper development version support in pyflink

pull/23306/head
Gabor Somogyi 1 year ago committed by GitHub
parent ab41e4f4f1
commit 171524fec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
.gitignore vendored

@ -43,8 +43,8 @@ flink-python/dev/.conda/
flink-python/dev/log/
flink-python/dev/.stage.txt
flink-python/.eggs/
flink-python/apache-flink-*.dev0/
flink-python/apache-flink-libraries/apache_flink_libraries-*.dev0/
flink-python/apache-flink-*.dev*/
flink-python/apache-flink-libraries/apache_flink_libraries-*.dev*/
flink-python/**/*.c
flink-python/.idea/
flink-python/**/*.so

@ -21,6 +21,7 @@ import glob
import io
import os
import platform
import re
import subprocess
import sys
from shutil import copytree, copy, rmtree
@ -97,7 +98,7 @@ try:
print("Temp path for symlink to parent already exists {0}".format(TEMP_PATH),
file=sys.stderr)
sys.exit(-1)
flink_version = VERSION.replace(".dev0", "-SNAPSHOT")
flink_version = re.sub("[.]dev.*", "-SNAPSHOT", VERSION)
FLINK_HOME = os.path.abspath(
"../../flink-dist/target/flink-%s-bin/flink-%s" % (flink_version, flink_version))

@ -20,6 +20,7 @@ from __future__ import print_function
import io
import os
import platform
import re
import sys
from distutils.command.build_ext import build_ext
from shutil import copytree, copy, rmtree
@ -206,7 +207,7 @@ try:
print("Temp path for symlink to parent already exists {0}".format(TEMP_PATH),
file=sys.stderr)
sys.exit(-1)
flink_version = VERSION.replace(".dev0", "-SNAPSHOT")
flink_version = re.sub("[.]dev.*", "-SNAPSHOT", VERSION)
FLINK_HOME = os.path.abspath(
"../flink-dist/target/flink-%s-bin/flink-%s" % (flink_version, flink_version))
FLINK_ROOT = os.path.abspath("..")
@ -252,7 +253,7 @@ try:
"is complete, or do this in the flink-python directory of the flink source "
"directory.")
sys.exit(-1)
if VERSION.find('dev0') != -1:
if re.search('dev.*$', VERSION) is not None:
apache_flink_libraries_dependency = 'apache-flink-libraries==%s' % VERSION
else:
split_versions = VERSION.split('.')

Loading…
Cancel
Save