forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRICING-11953: Enable cython36 build (apache#18)
* PRICING-11953: Enable cython36 build * updated venv path * updated the makefile command * update docker and makefile * udpate version
- Loading branch information
1 parent
5954345
commit 8eea0d0
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
FROM lyft/pythonlibrary:66d815e6ba03c9515c0c2273ecca13036015715d | ||
FROM lyft/pythonlibrary:aade5cd71241b7e490cd9d576154a013298a0892 | ||
RUN : \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
python3.6 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN : \ | ||
&& virtualenv -ppython2.7 /code/venvs/venv2 \ | ||
&& virtualenv -ppython3.6 /code/venvs/venv3 \ | ||
&& /code/venvs/venv2/bin/pip install "pip==9.0.0" "setuptools==39.0.1" "cython==0.28.1" "wheel" \ | ||
&& /code/venvs/venv3/bin/pip install "pip==9.0.3" "setuptools==39.0.1" "cython==0.28.1" "wheel" | ||
ENV PATH=/code/venvs/venv2/bin:/code/venvs/venv3/bin:$PATH | ||
# add source to a different directory, the code root and the setup.py root | ||
# are at different locations than lyft conventions expect | ||
WORKDIR /src/beam | ||
COPY . . | ||
# Add a symlink to the setup.py code root at the lyft conventional root | ||
RUN ln -sf /src/beam/sdks/python /code/beam | ||
# Install the same version of cython required by beam build | ||
RUN pip install "cython==0.28.1" | ||
RUN \ | ||
cp \ | ||
/code/containers/pythonlibrary/Makefile \ | ||
/src/beam/manifest.yaml \ | ||
/code/beam/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-include /code/containers/pythonlibrary/Makefile | ||
|
||
build_dists: | ||
/code/venvs/venv3/bin/python3.6 setup.py sdist bdist_wheel | ||
/code/venvs/venv2/bin/python2 setup.py bdist_wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters