Permalink
Browse files

Build: Merge setup_nbt.py into setup.py.

Now you can run `setup.py build_ext --inplace` to build _nbt for testing.
  • Loading branch information...
codewarrior0 committed Oct 30, 2012
1 parent 7b3a599 commit c62bc969d3add8f2551484d7bd8d49a88c616ee5
Showing with 12 additions and 16 deletions.
  1. +12 −2 setup.py
  2. +0 −14 setup_nbt.py
View
@@ -1,12 +1,19 @@
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 = [
# -*- Extra requirements: -*-
"numpy",
+ "pyyaml",
]
+ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
+
setup(name='pymclevel',
version=version,
description="Python library for reading Minecraft levels",
@@ -25,13 +32,16 @@
keywords='minecraft',
author='David Vierra',
author_email='codewarrior0@gmail.com',
- url='https://github.com/codewarrior0/pymclevel',
+ url='https://github.com/mcedit/pymclevel',
license='MIT License',
package_dir={'pymclevel': '.'},
packages=["pymclevel"],
+ ext_modules=ext_modules,
+ include_dirs=numpy.get_include(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
+ cmdclass={'build_ext': build_ext},
entry_points="""
# -*- Entry points: -*-
[console_scripts]
View
@@ -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()
-)

0 comments on commit c62bc96

Please sign in to comment.