Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
*.so
*.egg
*.pyc
*.pyd
*.x3g
/.eggs
/build
/dist
*egg-info
.coverage
stl_tools/cwrapped.c
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
from setuptools import setup, Extension
from setuptools import dist, setup, Extension

dist.Distribution().fetch_build_eggs(['numpy>=1.7'])
import numpy as np

SRC_DIR = "stl_tools"
PACKAGES = [SRC_DIR]

ext_1 = Extension(SRC_DIR + ".cwrapped",
[SRC_DIR + "/cwrapped.c"],
[SRC_DIR + "/cwrapped.pyx"],
libraries=[],
include_dirs=[np.get_include()])
EXTENSIONS = [ext_1]

setup(name='stl_tools',
version='0.3.0',
install_requires=['numpy', 'scipy', 'matplotlib'],
install_requires=['numpy>=1.7', 'scipy>=0.12', 'matplotlib>=1.2.1'],
python_requires='>=2.7,!=3.0.*,!=3.1.*',
description="Generate STL files from numpy arrays and text",
author='Tristan Hearn',
author_email='tristanhearn@gmail.com',
url='https://github.com/thearn/stl_tools',
license='Apache 2.0',
packages=['stl_tools'],
ext_modules=EXTENSIONS,
setup_requires=['cython>=0.17.4'],
entry_points={
'console_scripts':
['image2stl=stl_tools.image2stl:image2stl']
Expand Down
Loading