Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation fields to setup.py.in #1460

Merged
merged 2 commits into from Jul 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 28 additions & 4 deletions src/mlpack/bindings/python/setup.py.in
Expand Up @@ -42,8 +42,7 @@ else:
library_dirs=['${CMAKE_BINARY_DIR}/lib/'],
# CMAKE_CXX_FLAGS seems to have an extra space.
extra_compile_args=('-DBINDING_TYPE=BINDING_TYPE_PYX ' + \
'-std=c++11 ' + \
'${CMAKE_CXX_FLAGS}'.lstrip().rstrip()).split(' '),
'-std=c++11${CMAKE_CXX_FLAGS}').split(' '),
extra_link_args=['${OpenMP_CXX_FLAGS}'],
undef_macros=[] if len("${DISABLE_CFLAGS}") == 0 \
else '${DISABLE_CFLAGS}'.split(';')) \
Expand All @@ -62,15 +61,40 @@ else:
library_dirs=['${CMAKE_BINARY_DIR}/lib/'],
# CMAKE_CXX_FLAGS seems to have an extra space.
extra_compile_args=('-DBINDING_TYPE=BINDING_TYPE_PYX ' + \
'-std=c++11 ' + \
'${CMAKE_CXX_FLAGS}'.lstrip().rstrip()).split(' '),
'-std=c++11${CMAKE_CXX_FLAGS}').split(' '),
extra_link_args=['${OpenMP_CXX_FLAGS}'],
undef_macros=[] if len("${DISABLE_CFLAGS}") == 0 \
else '${DISABLE_CFLAGS}'.split(';')) \
for name in pyxs]

setup(name='mlpack',
version='${PACKAGE_VERSION}',
description='a flexible, fast machine learning library',
long_description='mlpack is a fast, flexible machine learning ' + \
'library, written in C++, that aims to provide fast, extensible ' + \
'implementations of cutting-edge machine learning algorithms. ' + \
'mlpack provides these algorithms as simple command-line ' + \
'programs, Python bindings, and C++ classes which can then be ' + \
'integrated into larger-scale machine learning solutions.',
long_description_content_type='text/plain',
url='http://www.mlpack.org/',
author='mlpack developers',
author_email='mlpack@lists.mlpack.org',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks'],
keywords='machine learning, data mining, deep learning, optimization',
project_urls={
'Documentation': 'http://www.mlpack.org/docs/mlpack-${PACKAGE_VERSION}/python.html',
'Source': 'https://github.com/mlpack/mlpack/',
'Tracker': 'https://github.com/mlpack/mlpack/issues'},
install_requires=['cython>=0.24', 'numpy', 'pandas'],
package_dir={ '': '${CMAKE_BINARY_DIR}/src/mlpack/bindings/python/' },
packages=['mlpack'],
cmdclass={ 'build_ext': build_ext },
Expand Down