Issue 173 in couchdb-python: Drop package simplejson dependency

6 views
Skip to first unread message

couchdb...@googlecode.com

unread,
Mar 13, 2011, 5:09:58 PM3/13/11
to couchdb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 173 by daevaorn: Drop package simplejson dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

setup.py for python version below 2.6 forces `simplejson` dependency. In
some use cases there can be 2.5 version and for example `cjson` instead of
`simplejson`.

Patch is attached.

Attachments:
drop-simplejson-dependency.diff 729 bytes

couchdb...@googlecode.com

unread,
Mar 14, 2011, 4:30:19 PM3/14/11
to couchdb...@googlegroups.com

Comment #1 on issue 173 by kxepal: Drop package simplejson dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

This patch will make couchdb-python package broken for pure 2.4 and 2.5
python installations which are announced as supported. If things are going
in this way, so may be refactoring whole project is better to use all
features of python 2.6 instead of removing one dependency?

couchdb...@googlecode.com

unread,
Mar 14, 2011, 4:38:34 PM3/14/11
to couchdb...@googlegroups.com

Comment #2 on issue 173 by djc.ocht...@gmail.com: Drop package simplejson
dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

Yeah, I wouldn't want to take it like this. On the other hand, we can try
to detect a cjson installation and not require simplejson if cjson is
installed.

couchdb...@googlecode.com

unread,
Mar 14, 2011, 4:52:59 PM3/14/11
to couchdb...@googlegroups.com

Comment #3 on issue 173 by daevaorn: Drop package simplejson dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

Package will not be broken. It will install nice and the some
sub-components will even working (I use `couchdb.mapping` as wrapper for
MongoDB objects which requirs no json library at all).

We can refactor `couchdb.json` module to perform more smart library
discovery and helpful error message if no one is available.

couchdb...@googlecode.com

unread,
Mar 14, 2011, 5:05:12 PM3/14/11
to couchdb...@googlegroups.com

Comment #4 on issue 173 by djc.ocht...@gmail.com: Drop package simplejson
dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

I think the expectation should still be that major functionality like the
stuff in the client module also works when couchdb-python is installed, so
there should at least be some JSON available, whether it's stdlib json,
simplejson or cjson. I'm not sure why you're so keen on getting the
dependency removed, but we're not going to take your patch as-is.

couchdb...@googlecode.com

unread,
Sep 21, 2012, 4:26:05 AM9/21/12
to couchdb...@googlegroups.com
Updates:
Status: Invalid

Comment #5 on issue 173 by djc.ochtman: Drop package simplejson dependency
http://code.google.com/p/couchdb-python/issues/detail?id=173

Closing as invalid.

Reply all
Reply to author
Forward
0 new messages