Skip to content

Commit bf21ddb

Browse files
python 3.8 support (#201)
1 parent 7b71a17 commit bf21ddb

File tree

16 files changed

+69
-26
lines changed

16 files changed

+69
-26
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ cache:
66
- $HOME/roms/
77
language: cpp # Needed for ccache
88
env:
9-
- PYVER=3.5
109
- PYVER=3.6
1110
- PYVER=3.7
11+
- PYVER=3.8
1212
os:
1313
- linux
1414
- osx
@@ -21,15 +21,15 @@ matrix:
2121
- os: linux
2222
env:
2323
- CROSS=win64
24-
- PYVER=3.5
24+
- PYVER=3.6
2525
- os: linux
2626
env:
2727
- CROSS=win64
28-
- PYVER=3.6
28+
- PYVER=3.7
2929
- os: linux
3030
env:
3131
- CROSS=win64
32-
- PYVER=3.7
32+
- PYVER=3.8
3333

3434
before_script:
3535
- mkdir -p $HOME/roms
@@ -40,6 +40,7 @@ script:
4040
else
4141
TAG=$TRAVIS_OS_NAME
4242
fi
43+
TAG=${TAG}-v2
4344
- >
4445
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
4546
docker run
@@ -60,7 +61,7 @@ script:
6061
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
6162
brew update > /dev/null
6263
brew install qt5 capnp [email protected] ccache
63-
curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
64+
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
6465
bash miniconda.sh -b
6566
export PATH=/usr/local/opt/ccache/libexec:$HOME/miniconda3/bin:$PATH
6667
hash -r

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.8.0
4+
5+
* add python 3.8 support
6+
* drop python 3.5 due to build issues on windows
7+
38
## 0.7.1
49

510
* fix discrete and multi-discrete action space filtering

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Supported platforms:
1212

1313
Supported Pythons:
1414

15-
- 3.5
1615
- 3.6
1716
- 3.7
17+
- 3.8
1818

1919
Each game integration has files listing memory locations for in-game variables, reward functions based on those variables, episode end conditions, savestates at the beginning of levels and a file containing hashes of ROMs that work with these files.
2020

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.1
1+
0.8.0

docker/build_images.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
cd "$(dirname $0)/../"
4+
./docker/linux/build_scripts/prefetch.sh OPENSSL CURL
5+
docker build . --tag openai/retro-build:linux-v2 --file docker/linux/Dockerfile
6+
docker push openai/retro-build:linux-v2
7+
docker build . --tag openai/retro-build:win64-v2 --file docker/windows/Dockerfile
8+
docker push openai/retro-build:win64-v2

docker/linux/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ RUN /opt/python/cp35-cp35m/bin/python3.5 -m venv ~/venv3.5 && \
2626
. ~/venv3.7/bin/activate && \
2727
pip install wheel && \
2828
pip install google-auth google-cloud-storage pytest requests && \
29+
/opt/python/cp38-cp38/bin/python3.8 -m venv ~/venv3.8 && \
30+
. ~/venv3.8/bin/activate && \
31+
pip install wheel && \
32+
pip install google-auth google-cloud-storage pytest requests && \
2933
rm -rf ~/.cache && \
3034
ln -s ~/venv$PYVER ~/venv && \
3135
echo "source /root/venv\$PYVER/bin/activate" > ~/.bash_profile

docker/linux/build_scripts/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ yum -y update
4343

4444
# EPEL support
4545
yum -y install wget
46-
# https://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
47-
cp $MY_DIR/epel-release-5-4.noarch.rpm .
46+
wget -q http://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm
4847
check_sha256sum epel-release-5-4.noarch.rpm $EPEL_RPM_HASH
4948

5049
# Dev toolset (for LLVM and other projects requiring C++11 support)

docker/linux/build_scripts/build_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# source me
22

33
PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
4-
CPYTHON_VERSIONS="3.5.6 3.6.7 3.7.1"
4+
CPYTHON_VERSIONS="3.5.6 3.6.7 3.7.1 3.8.2"
55

66
# openssl version to build, with expected sha256 hash of .tar.gz
77
# archive.
88
OPENSSL_ROOT=openssl-1.0.2p
99
OPENSSL_HASH=50a98e07b1a89eb8f6a99477f262df71c6fa7bef77df4dc83025a2845c827d00
10-
OPENSSL_DOWNLOAD_URL=https://www.openssl.org/source
10+
OPENSSL_DOWNLOAD_URL=https://www.openssl.org/source/old/1.0.2
1111

1212
# Update to slightly newer, verified Git commit:
1313
# https://github.com/NixOS/patchelf/commit/2a9cefd7d637d160d12dc7946393778fa8abbc58

docker/linux/build_scripts/build_utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function build_cpythons {
9292
check_var $GET_PIP_URL
9393
curl -fsSLO $GET_PIP_URL
9494
# Import public keys used to verify downloaded Python source tarballs.
95-
# https://www.python.org/static/files/pubkeys.txt
96-
gpg --import ${MY_DIR}/cpython-pubkeys.txt
95+
curl -fsSLO https://www.python.org/static/files/pubkeys.txt
96+
gpg --import pubkeys.txt
9797
for py_ver in $@; do
9898
build_cpython $py_ver
9999
done

docker/linux/build_scripts/prefetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Prefetch tarballs so they don't need to be fetched in the container (which has
33
# very old tools).
44
#
5-
# usage: prefetch.sh <output_dir> [name ...]
5+
# usage: prefetch.sh [name ...]
66
set -ex
77

88
MY_DIR=$(dirname "${BASH_SOURCE[0]}")

0 commit comments

Comments
 (0)