Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/flinkDev/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ 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 %}
cd flink-python; python3 setup.py sdist bdist_wheel
# 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
{% endhighlight %}

The sdist and wheel package will be found under `./flink-python/dist/`. Either of them could be used for pip installation, such as:
Expand Down
6 changes: 5 additions & 1 deletion docs/flinkDev/building.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ mvn clean install -DskipTests -Dfast
之后,进入Flink源码根目录,并执行以下命令,构建PyFlink的源码发布包和wheel包:

{% highlight bash %}
cd flink-python; python3 setup.py sdist bdist_wheel
# 注: 执行以下命令设置版本(临时性需要)
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
{% endhighlight %}

构建好的源码发布包和wheel包位于`./flink-python/dist/`目录下。它们均可使用pip安装,比如:
Expand Down