Commit 9aebf6c2 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Bump the minimum python version to 3.5.

parent c0028df9
......@@ -11,6 +11,7 @@
### Changed
- We do not output the break strength from the `bc03` module anymore as these were not computed properly. (Médéric Boquien)
- The new `restframe\_param` module replaces the unofficial `param` module, which has now been trimmed to only compute fluxes in the observed frame as the rest of its functionalities have been transferred to the much more efficient `restframe\_param` module. To reflect this, it has been renamed `fluxes`. (Médéric Boquien)
- We now make use of new features available in Python 3.5. Previous versions are henceforth unsupported. However Python 3.6 or later is recommended for better performance. (Médéric Boquien)
### Fixed
- When the pcigale.ini file was missing, pcigale would crash and display a fairly cryptic backtrace. Now it explicitly states that the file could not be found. (Médéric Boquien)
......@@ -54,16 +54,18 @@ def run(config):
def main():
if sys.version_info[:2] < (3, 5):
raise Exception("Python {}.{} is unsupported. Please upgrade to "
"Python 3.5 or later.".format(*sys.version_info[:2]))
if sys.version_info[:2] < (3,6):
print("Python {}.{} detected. For better performance we recommend "
"Python 3.6 or later.".format(*sys.version_info[:2]))
# We set the sub processes start method to spawn because it solves
# deadlocks when a library cannot handle being used on two sides of a
# forked process. This happens on modern Macs with the Accelerate library
# for instance. Unfortunately this only comes with python≥3.4. People using
# older versions should upgrade if they encounter deadlocks.
if sys.version_info[:2] >= (3, 4):
print("Could not set the multiprocessing start method to spawn. If "
"you encounter a deadlock, please upgrade to Python≥3.4.")
# for instance.
parser = argparse.ArgumentParser()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment