From ba47b092e90853876a16cbc451d33f2d953e29ca Mon Sep 17 00:00:00 2001 From: parrt Date: Sun, 10 Dec 2017 12:32:52 -0800 Subject: [PATCH] update setup.py to use setuptools not distutils (Python 3) --- doc/releasing-antlr.md | 3 +-- runtime/Python3/setup.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/releasing-antlr.md b/doc/releasing-antlr.md index f17ddf0a3..e3ed7915b 100644 --- a/doc/releasing-antlr.md +++ b/doc/releasing-antlr.md @@ -355,8 +355,7 @@ and do again for Python 3 target ```bash cd ~/antlr/code/antlr4/runtime/Python3 # assume you have ~/.pypirc set up -python setup.py register -r pypi -python setup.py sdist bdist_wininst upload -r pypi +python3 setup.py sdist upload ``` There are links to the artifacts in [download.html](http://www.antlr.org/download.html) already. diff --git a/runtime/Python3/setup.py b/runtime/Python3/setup.py index f363bfc1e..908979249 100644 --- a/runtime/Python3/setup.py +++ b/runtime/Python3/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name='antlr4-python3-runtime', @@ -9,5 +9,5 @@ setup( license='BSD', author='Eric Vergnaud, Terence Parr, Sam Harwell', author_email='eric.vergnaud@wanadoo.fr', - description='ANTLR 4.7.1 runtime for Python 3.4.0' + description='ANTLR 4.7.1 runtime for Python 3.6.3' )