From 1ba2f7d609ec8b3e5cf9dcc8dee3007a3b4a64d5 Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Fri, 6 Sep 2019 16:23:56 +0200 Subject: [PATCH] Tweak `setup.py` --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 570321c..8803537 100644 --- a/setup.py +++ b/setup.py @@ -17,16 +17,17 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -import os from distutils.core import setup +from os.path import dirname, join as joinpath +from sys import platform def _read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() + return open(joinpath(dirname(__file__), fname)).read() requirements = [] -if os.uname()[0].lower() == 'darwin': +if platform == 'darwin': requirements.append('netifaces (>= 0.5)')