diff --git a/lib/python/camli/op.py b/lib/python/camli/op.py index 0091bac29..7a5884a0d 100755 --- a/lib/python/camli/op.py +++ b/lib/python/camli/op.py @@ -111,7 +111,7 @@ class CamliOp(object): raise NameError("basepath must be in form '/bs'") if basepath[-1] == '/': basepath = basepath[:-1] - self._basepath = basepath + self.basepath = basepath def _setup_connection(self): """Sets up the HTTP connection.""" @@ -156,7 +156,7 @@ class CamliOp(object): self._setup_connection() if self.basepath: - fullpath = basepath + '/camli/stat' + fullpath = self.basepath + '/camli/stat' else: fullpath = '/camli/stat' self.connection.request( diff --git a/lib/python/setup.py b/lib/python/setup.py new file mode 100644 index 000000000..cefac2d88 --- /dev/null +++ b/lib/python/setup.py @@ -0,0 +1,16 @@ +from setuptools import setup +setup( + name='camlistore-client', + version='1.0.3dev', + author='Brett Slatkin', + author_email='bslatkin@gmail.com', + maintainer='Jack Laxson', + maintainer_email='jackjrabbit+camli@gmail.com', + description="Client library for Camlistore.", + url='http://camlistore.org', + license='Apache v2', + long_description='A convience library for python developers wishing to explore camlistore.', + packages=['camli'], + install_requires=['simplejson'], + classifiers=['Environment :: Console', 'Topic :: Internet :: WWW/HTTP'] +) \ No newline at end of file