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 2020/04/24 06:11:16 UTC
[flink] branch release-1.9 updated: [FLINK-17215][python][docs]
Clean the build document for Pyflink (#11792)
This is an automated email from the ASF dual-hosted git repository.
dianfu pushed a commit to branch release-1.9
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.9 by this push:
new 8c8fa36 [FLINK-17215][python][docs] Clean the build document for Pyflink (#11792)
8c8fa36 is described below
commit 8c8fa36f118ac841990fbaced14e71aeb946edf1
Author: Hequn Cheng <ch...@gmail.com>
AuthorDate: Fri Apr 24 14:10:31 2020 +0800
[FLINK-17215][python][docs] Clean the build document for Pyflink (#11792)
---
docs/flinkDev/building.md | 6 +-----
docs/flinkDev/building.zh.md | 6 +-----
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/docs/flinkDev/building.md b/docs/flinkDev/building.md
index 451af28..c4c9d4a 100644
--- a/docs/flinkDev/building.md
+++ b/docs/flinkDev/building.md
@@ -62,11 +62,7 @@ If you want to build a PyFlink package that can be used for pip installation, yo
Then go to the root directory of flink source code and run this command to build the sdist package and wheel package:
{% highlight bash %}
-# Note: we need this temporarily due to a bug
-VERSION=`grep "^version:" docs/_config.yml | awk -F'\"' '{print $2}'`
-cd flink-python; perl -pi -e "s#^__version__ = \".*\"#__version__ = \"${VERSION}\"#" pyflink/version.py
-# build packages
-python3 setup.py sdist bdist_wheel
+cd flink-python; python3 setup.py sdist bdist_wheel
{% endhighlight %}
The sdist and wheel package will be found under `./flink-python/dist/`. Either of them could be used for pip installation, such as:
diff --git a/docs/flinkDev/building.zh.md b/docs/flinkDev/building.zh.md
index 81a08be..b4116ee 100644
--- a/docs/flinkDev/building.zh.md
+++ b/docs/flinkDev/building.zh.md
@@ -62,11 +62,7 @@ mvn clean install -DskipTests -Dfast
之后,进入Flink源码根目录,并执行以下命令,构建PyFlink的源码发布包和wheel包:
{% highlight bash %}
-# 注: 执行以下命令设置版本(临时性需要)
-VERSION=`grep "^version:" docs/_config.yml | awk -F'\"' '{print $2}'`
-cd flink-python; perl -pi -e "s#^__version__ = \".*\"#__version__ = \"${VERSION}\"#" pyflink/version.py
-# 打包
-python3 setup.py sdist bdist_wheel
+cd flink-python; python3 setup.py sdist bdist_wheel
{% endhighlight %}
构建好的源码发布包和wheel包位于`./flink-python/dist/`目录下。它们均可使用pip安装,比如: