Skip to content

Commit

Permalink
Prepare the obsolescence of Python 3.6
Browse files Browse the repository at this point in the history
Security fixes for Python 3.6 will no longer be released in 2022. JSBSim will then drop the support of Python 3.6.

Setting the `python_requires` parameter in `setup.py` allows PyPI determining which is the last JSBSim release that is compatible with Python 3.6. In addition, this will allow future JSBSim releases to use features from Python 3.7 that are not compatible with 3.6.
  • Loading branch information
bcoconni committed Nov 6, 2021
1 parent 8e1e0c5 commit a128d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ else:
'extra_compile_args': compile_flags }
# List of required modules to build the JSBSim module from the sources.
setup_kwargs = {'cmdclass' : {'build_ext': BuildC_CxxExtension,},
'setup_requires': ["setuptools>=18.0", "cython>=0.25"]}
'setup_requires': ["setuptools>=24.2", "cython>=0.25"]}

# Build & installation process for the JSBSim Python module
setup(
Expand Down Expand Up @@ -238,4 +238,5 @@ setup(
scripts=['JSBSim'],
install_requires=['numpy'],
ext_modules=[Extension('jsbsim', language='c++', **ext_kwargs)],
python_requires=">=3.6",
**setup_kwargs)

0 comments on commit a128d9f

Please sign in to comment.