diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2015-07-31 14:19:02 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2015-07-31 14:19:02 +0200 |
| commit | 6945ebb546d10fa9c13b32befcedc6240cbb1d80 (patch) | |
| tree | 842866cfa48534fe7893ffa3abb3bfb76fb9f5a4 | |
| parent | allow sourcing SyncRNG.R from a non-local directory (diff) | |
| download | SyncRNG-6945ebb546d10fa9c13b32befcedc6240cbb1d80.tar.gz SyncRNG-6945ebb546d10fa9c13b32befcedc6240cbb1d80.zip | |
allow installation as python module
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | setup.py | 27 |
2 files changed, 27 insertions, 14 deletions
@@ -49,6 +49,20 @@ for (i in 1:10) { You'll notice that the random numbers are indeed the same. +Installation +------------ + +The Python module can be installed locally for the user using: + +```sh +python setup.py install --user +``` +or system-wide through: + +```sh +sudo python setup.py install +``` + Notes ----- @@ -1,19 +1,18 @@ from distutils.core import setup, Extension -""" -module1 = Extension('syncrng', - define_macros = [('TARGETPYTHON', '1')], - sources=['syncrng.c']) - -setup (name = 'SyncRNG', - version = '0.1', - description='A synchronized Tausworthe RNG for Python and R', - ext_modules = [module1]) -""" - setup( - ext_modules=[Extension("syncrng", - define_macros=[('TARGETPYTHON', '1')], - sources=["syncrng.c"])], + name='SyncRNG', + author='Gertjan van den Burg', + version='0.1', + description='A synchronized Tausworthe RNG for Python and R', + license='GPL v2', + py_modules=['SyncRNG'], + ext_modules=[ + Extension( + "syncrng", + define_macros=[('TARGETPYTHON', '1')], + sources=["syncrng.c"] + ) + ], ) |
