diff --git a/setup.py b/setup.py index ba21964b..89dadf58 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import os import sys +from os import path from setuptools import setup -src_dir = os.path.abspath(os.path.dirname(__file__)) +src_dir = path.abspath(path.dirname(__file__)) if sys.argv[1].lower().strip() == 'make': # exec Makefile commands import pymake - fpath = os.path.join(src_dir, 'Makefile') + fpath = path.join(src_dir, 'Makefile') pymake.main(['-f', fpath] + sys.argv[2:]) # Stop to avoid setup.py raising non-standard command error sys.exit(0) diff --git a/tox.ini b/tox.ini index dfce1650..708f71de 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ [tox] # deprecation warning: py{34} -envlist=py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, flake8, setup.py +envlist=py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, setup.py isolated_build=True [coverage]