Commit c46580c7 authored by Christoph Groth's avatar Christoph Groth
Browse files

fix some aspects of packaging

parent c5e312a7
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
*.so *.so
/build /build
/dist /dist
/MANIFEST
# This file specifies the files to be included in the source distribution
# in addition to the default ones.
include MANIFEST.in
include test_tinyarray.py
recursive-include src *.hh
tinyarray implements a subset of NumPy's functionality in a way optimized for
small arrays, both in terms memory usage of runtime. For small arrays,
speedups of 3 to 35 times are measured compared to NumPy. Unlike NumPy arrays,
tinyarrays are immutable and thus can be used as dictionary keys.
To install, run
python setup.py build
python setup.py install
...@@ -3,10 +3,12 @@ ...@@ -3,10 +3,12 @@
from distutils.core import setup, Extension from distutils.core import setup, Extension
module = Extension('tinyarray', module = Extension('tinyarray',
language = 'c++', language='c++',
extra_compile_args = ['--std=c++0x'], extra_compile_args=['--std=c++0x'],
sources = ['src/array.cc', 'src/functions.cc', sources=['src/arithmetic.cc', 'src/array.cc',
'src/arithmetic.cc']) 'src/functions.cc'],
depends=['src/arithmetic.hh', 'src/array.hh',
'src/conversion.hh', 'src/functions.hh'])
setup (name = 'tinyarray', setup (name = 'tinyarray',
version = '0.0', version = '0.0',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment