From 637b2c5788657535ab05b6610f3b02d56ab957ec Mon Sep 17 00:00:00 2001 From: nitromaster101 Date: Thu, 9 Jul 2009 01:36:29 +0000 Subject: add upload/revert schema manipulation, more tests, and other changes of the past few days git-svn-id: http://freebase-python.googlecode.com/svn/trunk@172 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2 --- setup.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index eb1b2b7..6270dc6 100644 --- a/setup.py +++ b/setup.py @@ -35,14 +35,19 @@ except ImportError: from distutils.core import setup -# if python version < 2.6, require simplejson -# if python version >= 2.6, it comes with json - json = [] -major, minor, micro, releaselevel, serial = sys.version_info -if major <= 2 and minor < 6: - json.append("simplejson") +# if jsonlib2 is already installed, then we're fine +# we don't need anything else +try: + import jsonlib2 +except ImportError: + # if python version < 2.6, require simplejson + # if python version >= 2.6, it comes with json + + major, minor, micro, releaselevel, serial = sys.version_info + if major <= 2 and minor < 6: + json.append("simplejson") setup( name='freebase', @@ -59,11 +64,14 @@ setup( packages=['freebase', 'freebase.api', 'freebase.fcl'], entry_points = { 'console_scripts': [ - 'fcl = freebase.fcl.fcl:main' + 'fcl = freebase.fcl.fcl:main', + 'fb_save_base = freebase.schema.cmd:fb_save_base', + 'fb_save_type = freebase.schena.cmd:fb_save_type', + 'fb_restore = freebase.schema.cmd:fb_restore' ] }, + test_suite = "test.runtests.main", install_requires=[] + json, - #download_url='xxx', # provided by cheeseshop? classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', -- cgit v1.3.1