-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
186 changed files
with
5 additions
and
81 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# This is a list of files to install Geatpy | ||
# This is a brief tutorial of files to install Geatpy | ||
# | ||
# Geatpy is a free toolbox: you can redistribute it and/or modify as you want. | ||
# | ||
# Geatpy is distributed in the hope that it will be useful for the genetic | ||
# and evolutionary algorithm, you can get the tutorial from http://www.geatpy.com | ||
# and evolutionary algorithm, you can get the tutorial from http://geatpy.github.io | ||
# | ||
# If you want to donate to it, please email [email protected] | ||
|
||
import pathlib | ||
import platform | ||
import shutil | ||
import sys | ||
|
||
from Cython.Build import cythonize | ||
import numpy as np | ||
import setuptools | ||
from setuptools import setup | ||
|
||
kwargs = dict( | ||
name="geatpy", | ||
version="2.7.0", | ||
description=("Geatpy is a high-performance " | ||
"Genetic and Evolutionary Algorithms toolbox for Python."), | ||
author="Geatpy Team", | ||
author_email="[email protected]", | ||
url="http://www.geatpy.com", | ||
packages=setuptools.find_packages(), | ||
include_package_data=True, # Enabled list file: MANIFEST.in | ||
install_requires=[ | ||
'numpy>=1.17.0', | ||
'matplotlib>=3.0.0', | ||
], | ||
extras_require={ | ||
"dev": [ | ||
"yapf>=0.32", | ||
"flake8>=4.0", | ||
"isort>=5.10", | ||
"commitizen>=2.26", | ||
"pre-commit>=2.17", | ||
"toml>=0.10" | ||
], | ||
"test": ["pytest>=7.0"] | ||
}, | ||
platforms='any', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Topic :: Software Development', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
], | ||
long_description=( | ||
"Geatpy--The Genetic and Evolutionary Algorithms Toolbox for Python. " | ||
"http://www.geatpy.com"), | ||
zip_safe=False, | ||
) | ||
|
||
dest_path = pathlib.Path('geatpy/core/') | ||
source_path = pathlib.Path('_core/') | ||
|
||
if dest_path.exists(): | ||
shutil.rmtree(dest_path) | ||
dest_path.mkdir() | ||
python_version = 'v{}.{}'.format(sys.version_info.major, | ||
sys.version_info.minor) | ||
core_path = (source_path / '{}'.format(platform.system()) | ||
/ 'lib{}'.format(platform.architecture()[0][:2]) / python_version) | ||
for file in core_path.iterdir(): | ||
shutil.copy(file, dest_path / file.name) | ||
|
||
try: | ||
setup(include_dirs=[np.get_include()], | ||
ext_modules=cythonize("build/build.pyx"), | ||
language="c", | ||
**kwargs), | ||
except Exception: | ||
setup(**kwargs) | ||
# | ||
# Installation way: | ||
# pip install geatpy |