source: code/setup.py

Last change on this file was 204, checked in by jcappos, 6 years ago

fixed email address

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#! /usr/bin/env python
2
3
4from distutils.core import setup, Extension
5
6import sys
7
8print "This is not intended to be used for any serious purpose.  It is only"
9print "constructed to build the C xordatastore.   There will be a serious"
10print "version of this written later that covers more of upPIR..."
11
12
13# Must have Python >= 2.5 and < 3.0.   If Python version == 2.5.X, then
14# simplejson is required.
15if sys.version_info[0] != 2 or sys.version_info[1] < 5:
16  print "Requires Python >= 2.5 and < 3.0"
17  sys.exit(1)
18
19# We need a json library.   (We'll use the standard library json in Python 2.6
20# and greater...
21if sys.version_info[1] == 5:
22  try:
23    import simplejson
24  except ImportError:
25    print "The package simplejson is required on Python 2.5.X"
26    sys.exit(1)
27
28
29fastsimpledatastore_c = Extension("fastsimplexordatastore_c",
30    sources=["fastsimplexordatastore.c"])
31
32setup(  name="upPIR",
33    version="0.0-prealpha",
34    ext_modules=[fastsimpledatastore_c],
35    description="""An early version of upPIR with a simple C-based xordatastore.""",
36    author="Justin Cappos",
37    author_email="jcappos@nyu.edu",
38)
39
40
Note: See TracBrowser for help on using the repository browser.