From b31df45467a125481f73e70663ff52589b9cf196 Mon Sep 17 00:00:00 2001 From: Andriy Orehov Date: Wed, 31 Jan 2018 13:30:31 +0200 Subject: [PATCH] fix package_path in root setup.py for installing via pip install -e (developer install) fix installation on win32 and win64 --- setup.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index f7b88d3..78520ef 100644 --- a/setup.py +++ b/setup.py @@ -3,16 +3,15 @@ from setuptools import setup, find_packages -package_path = '.' if sys.platform == "darwin": # mac - package_path = path.join(package_path, "mac", "x86-64") -elif sys.platform != "win": # linux - package_path = path.join(package_path, "linux", "x86-64") + package_path = path.join("mac", "x86-64") +elif sys.platform == "linux": # linux + package_path = path.join("linux", "x86-64") elif sys.maxsize > 2 ** 32: # 64 bit windows - package_path = path.join(package_path, "windows", "win64") + package_path = path.join("windows", "win64") else: # 32 bit windows - package_path = path.join(package_path, "windows", "win32") + package_path = path.join("windows", "win32") if sys.version[0] == '3': package_path = path.join(package_path, 'python3')