From 12614aa54ca830ff7dd29e72b00f2e007dced933 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 17 Feb 2021 04:15:29 +0000 Subject: [PATCH] minor framework tidy --- setup.py | 6 +++--- tox.ini | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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]