From 860d8b8037d1a9af948c6b36dec4f328dc96e124 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Tue, 14 Apr 2020 09:32:25 +0200 Subject: [PATCH] Fix import order in setup.py The sys module should be imported first to decalre msspec path as soon as possible. It enables to load the version module necessary to avoid hardcoded version number in the setup.py file. Please note that this import order is not pep8 compliant. --- src/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setup.py b/src/setup.py index ac2b26a..ee207c3 100644 --- a/src/setup.py +++ b/src/setup.py @@ -21,10 +21,10 @@ # Last modified: mar. 07 avril 2020 17:01:42 # Committed by : "Sylvain Tricot " -from setuptools import setup, find_packages -from version import __version__ import sys sys.path.insert(0, "msspec") +from setuptools import setup, find_packages +from version import __version__ with open('setup_requirements.txt', 'r') as fd: