Build: Merge setup_nbt.py into setup.py.
Now you can run `setup.py build_ext --inplace` to build _nbt for testing.
This commit is contained in:
parent
7b3a5995b2
commit
c62bc969d3
14
setup.py
14
setup.py
@ -1,12 +1,19 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from setuptools.extension import Extension
|
||||||
|
from Cython.Distutils import build_ext
|
||||||
|
|
||||||
version = '1.0'
|
import numpy
|
||||||
|
|
||||||
|
version = '0.1'
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
# -*- Extra requirements: -*-
|
# -*- Extra requirements: -*-
|
||||||
"numpy",
|
"numpy",
|
||||||
|
"pyyaml",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
|
||||||
|
|
||||||
setup(name='pymclevel',
|
setup(name='pymclevel',
|
||||||
version=version,
|
version=version,
|
||||||
description="Python library for reading Minecraft levels",
|
description="Python library for reading Minecraft levels",
|
||||||
@ -25,13 +32,16 @@ setup(name='pymclevel',
|
|||||||
keywords='minecraft',
|
keywords='minecraft',
|
||||||
author='David Vierra',
|
author='David Vierra',
|
||||||
author_email='codewarrior0@gmail.com',
|
author_email='codewarrior0@gmail.com',
|
||||||
url='https://github.com/codewarrior0/pymclevel',
|
url='https://github.com/mcedit/pymclevel',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
package_dir={'pymclevel': '.'},
|
package_dir={'pymclevel': '.'},
|
||||||
packages=["pymclevel"],
|
packages=["pymclevel"],
|
||||||
|
ext_modules=ext_modules,
|
||||||
|
include_dirs=numpy.get_include(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
|
cmdclass={'build_ext': build_ext},
|
||||||
entry_points="""
|
entry_points="""
|
||||||
# -*- Entry points: -*-
|
# -*- Entry points: -*-
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
14
setup_nbt.py
14
setup_nbt.py
@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
from distutils.core import setup
|
|
||||||
from distutils.extension import Extension
|
|
||||||
from Cython.Distutils import build_ext
|
|
||||||
|
|
||||||
ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
|
|
||||||
import numpy
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name='NBT library (Cython implementation)',
|
|
||||||
cmdclass={'build_ext': build_ext},
|
|
||||||
ext_modules=ext_modules,
|
|
||||||
include_dirs=numpy.get_include()
|
|
||||||
)
|
|
Reference in New Issue
Block a user