From 8050174d5ef46d307f9edd20f362b8ed66b459c4 Mon Sep 17 00:00:00 2001 From: Kyle Barbary Date: Sun, 3 Feb 2019 09:12:59 -0800 Subject: [PATCH] fix bug in setup --- setup.py | 6 +++--- sncosmo/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 82691548..ebd72119 100755 --- a/setup.py +++ b/setup.py @@ -52,12 +52,12 @@ def run_tests(self): open(os.path.join("sncosmo", "__init__.py")).read())[0] -# Detect whether to use Cython based on the presence of MANIFEST.in. -# If this file doesn't exist, it indicates that we're in a source +# Detect whether to use Cython based on the presence of PKG-INFO. +# If this file exists, it indicates that we're in a source # distribution build, in which case the C files should already be # included and Cython should not be required. As a fallback, if the C # files are not included, Cython will be used to generate them regardless. -USE_CYTHON = (os.path.exists('MANIFEST.in') or +USE_CYTHON = (not os.path.exists('PKG-INFO') or not os.path.exists(os.path.join("sncosmo", "salt2utils.c"))) # extension module(s): only add if setup.py argument is not egg_info, because diff --git a/sncosmo/__init__.py b/sncosmo/__init__.py index 33bf3405..139077fc 100644 --- a/sncosmo/__init__.py +++ b/sncosmo/__init__.py @@ -11,7 +11,7 @@ from astropy.config.configuration import update_default_config -__version__ = "1.7.0" +__version__ = "1.7.1" def test(package=None, test_path=None, args=None, plugins=None,