From 8c33e4311295cae72631cde1f9e640fc0896544e Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 16 Oct 2015 12:44:18 -1000 Subject: [PATCH] Split setup.py into two files --- setup.py | 93 +--------------------------------------------- setup_mcedit2.py | 61 ++++++++++++++++++++++++++++++ setup_mceditlib.py | 52 ++++++++++++++++++++++++++ 3 files changed, 115 insertions(+), 91 deletions(-) create mode 100644 setup_mcedit2.py create mode 100644 setup_mceditlib.py diff --git a/setup.py b/setup.py index 8bd901f..2c5a3a1 100644 --- a/setup.py +++ b/setup.py @@ -1,91 +1,2 @@ -from setuptools import setup -from Cython.Build import cythonize - -# Output annotated .html -import Cython.Compiler.Options -Cython.Compiler.Options.annotate = True - -import numpy - -with file("version.txt") as f: - version = f.read().strip() - -install_requires = [ - # -*- Extra requirements: -*- - "numpy", -] - -mceditlib_ext_modules = cythonize([ - "src/mceditlib/nbt.pyx", - "src/mceditlib/relight/with_cython.pyx" -]) - -setup(name='mceditlib', - version=version, - description="Python library for editing Minecraft levels", - # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Console", - "Intended Audience :: Developers", - "Natural Language :: English", - "Operating System :: OS Independent", - "Programming Language :: Python :: 2.7", - "Topic :: Utilities", - "License :: OSI Approved :: MIT License", - ], - keywords='minecraft', - author='David Vierra', - author_email='codewarrior0@gmail.com', - url='https://github.com/mcedit/mcedit2', - license='MIT License', - packages=["mceditlib"], - package_dir={'': 'src'}, - ext_modules=mceditlib_ext_modules, - include_dirs=numpy.get_include(), - include_package_data=True, - zip_safe=False, - install_requires=install_requires, - ) - -mcedit2_ext_modules = cythonize( - [ - "src/mcedit2/rendering/blockmodels.pyx", - "src/mcedit2/rendering/modelmesh.pyx", - ] - ) - -setup(name='mcedit2', - version=version, - description="Interactive 3D World Editor for Minecraft Levels", - # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - "Development Status :: 2 - Pre-Alpha", - "Environment :: Win32 (MS Windows)", - "Environment :: X11 Applications :: Qt", - "Environment :: MacOS X", - "Intended Audience :: End Users/Desktop", - "Natural Language :: English", - "Operating System :: OS Independent", - "Programming Language :: Python :: 2.7", - "Topic :: Utilities", - "License :: OSI Approved :: MIT License", - ], - keywords='minecraft', - author='David Vierra', - author_email='codewarrior0@gmail.com', - url='https://github.com/mcedit/mcedit2', - license='MIT License', - packages=["mcedit2"], - package_dir={'': 'src'}, - ext_modules=mcedit2_ext_modules, - include_dirs=numpy.get_include(), - include_package_data=True, - zip_safe=False, - install_requires=install_requires, - entry_points=""" - # -*- Entry points: -*- - [console_scripts] - mcedit2=mcedit2.main:main - """, - ) +import setup_mcedit2 +import setup_mceditlib diff --git a/setup_mcedit2.py b/setup_mcedit2.py new file mode 100644 index 0000000..0320659 --- /dev/null +++ b/setup_mcedit2.py @@ -0,0 +1,61 @@ +""" + setup-mcedit2 +""" + +from setuptools import setup +from Cython.Build import cythonize +import numpy + +# Output annotated .html +import Cython.Compiler.Options +Cython.Compiler.Options.annotate = True + + +with file("version.txt") as f: + version = f.read().strip() + +install_requires = [ + "numpy", +] + +mcedit2_ext_modules = cythonize( + [ + "src/mcedit2/rendering/blockmodels.pyx", + "src/mcedit2/rendering/modelmesh.pyx", + ] + ) + +setup(name='mcedit2', + version=version, + description="Interactive 3D World Editor for Minecraft Levels", + # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + "Development Status :: 2 - Pre-Alpha", + "Environment :: Win32 (MS Windows)", + "Environment :: X11 Applications :: Qt", + "Environment :: MacOS X", + "Intended Audience :: End Users/Desktop", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2.7", + "Topic :: Utilities", + "License :: OSI Approved :: MIT License", + ], + keywords='minecraft', + author='David Vierra', + author_email='codewarrior0@gmail.com', + url='https://github.com/mcedit/mcedit2', + license='MIT License', + packages=["mcedit2"], + package_dir={'': 'src'}, + ext_modules=mcedit2_ext_modules, + include_dirs=numpy.get_include(), + include_package_data=True, + zip_safe=False, + install_requires=install_requires, + entry_points=""" + # -*- Entry points: -*- + [console_scripts] + mcedit2=mcedit2.main:main + """, + ) diff --git a/setup_mceditlib.py b/setup_mceditlib.py new file mode 100644 index 0000000..a961003 --- /dev/null +++ b/setup_mceditlib.py @@ -0,0 +1,52 @@ +""" + setup_mceditlib +""" + +from setuptools import setup +from Cython.Build import cythonize + +# Output annotated .html +import Cython.Compiler.Options +Cython.Compiler.Options.annotate = True + +import numpy + +with file("version.txt") as f: + version = f.read().strip() + +install_requires = [ + "numpy", +] + +mceditlib_ext_modules = cythonize([ + "src/mceditlib/nbt.pyx", + "src/mceditlib/relight/with_cython.pyx" +]) + +setup(name='mceditlib', + version=version, + description="Python library for editing Minecraft levels", + # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2.7", + "Topic :: Utilities", + "License :: OSI Approved :: MIT License", + ], + keywords='minecraft', + author='David Vierra', + author_email='codewarrior0@gmail.com', + url='https://github.com/mcedit/mcedit2', + license='MIT License', + packages=["mceditlib"], + package_dir={'': 'src'}, + ext_modules=mceditlib_ext_modules, + include_dirs=numpy.get_include(), + include_package_data=True, + zip_safe=False, + install_requires=install_requires, + )