Skip to content

Commit

Permalink
Set minimum Python version to 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Jul 2, 2023
1 parent 361fb9f commit 594dddc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/api/compilation.inc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Building from Source
--------------------

As discussed in the previous section :ref:`structure`, the algorithm that is provided by this project is mostly implemented in `C++ <https://en.wikipedia.org/wiki/C%2B%2B>`__ to ensure maximum efficiency (requires C++ 14 or newer). In addition, a `Python <https://en.wikipedia.org/wiki/Python_(programming_language)>`__ wrapper that integrates the algorithm with the `scikit-learn <https://scikit-learn.org>`__ framework is provided (requires Python 3.7 or newer). To make the underlying C++ implementation accessible from within the Python code, `Cython <https://en.wikipedia.org/wiki/Cython>`__ is used (requires Cython 29 or newer).
As discussed in the previous section :ref:`structure`, the algorithm that is provided by this project is mostly implemented in `C++ <https://en.wikipedia.org/wiki/C%2B%2B>`__ to ensure maximum efficiency (requires C++ 14 or newer). In addition, a `Python <https://en.wikipedia.org/wiki/Python_(programming_language)>`__ wrapper that integrates the algorithm with the `scikit-learn <https://scikit-learn.org>`__ framework is provided (requires Python 3.8 or newer). To make the underlying C++ implementation accessible from within the Python code, `Cython <https://en.wikipedia.org/wiki/Cython>`__ is used (requires Cython 29 or newer).

Unlike pure Python programs, the C++ and Cython source files must be compiled for a particular target platform. To ease the process of compiling the source code, the project comes with a `Makefile <https://en.wikipedia.org/wiki/Make_(software)>`__ that automates the necessary steps. In the following, we discuss the individual steps that are necessary for building the project from scratch. This is necessary if you intend to modify the library's source code. If you want to use the algorithm without any custom modifications, the :ref:`installation` of pre-built packages is usually a better choice.

Expand Down
2 changes: 1 addition & 1 deletion python/subprojects/boosting/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def find_extensions(directory):
'MacOS',
'Windows',
],
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[
'mlrl-common==' + VERSION,
],
Expand Down
2 changes: 1 addition & 1 deletion python/subprojects/common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def find_dependencies(requirements_file, dependency_names):
'MacOS',
'Windows',
],
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[
find_dependencies(requirements_file=Path(__file__).resolve().parent.parent.parent / 'requirements.txt',
dependency_names=['numpy', 'scipy', 'scikit-learn']),
Expand Down
2 changes: 1 addition & 1 deletion python/subprojects/seco/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def find_extensions(directory):
'MacOS',
'Windows',
],
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[
'mlrl-common==' + VERSION,
],
Expand Down
2 changes: 1 addition & 1 deletion python/subprojects/testbed/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def find_dependencies(requirements_file, dependency_names):
'evaluation',
],
platforms=['any'],
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=[
'mlrl-common==' + VERSION,
*find_dependencies(requirements_file=Path(__file__).resolve().parent.parent.parent / 'requirements.txt',
Expand Down

0 comments on commit 594dddc

Please sign in to comment.