openmicroscopy/snoopycrimecop — pull request #66 by joshmoore (2013-03-04 21:24:38+00:00)
Title: Enable setup.py packaging for scc

With this setup.py file the following is now possible:

python virtualenv.py /tmp/venv
/tmp/venv/bin/python setup.py install
/tmp/venv/bin/scc --help

This PR still has some issues that will need to be fixed:

* Some locations specify GPL where others specify LGPL
* We will likely want to tag this 0.3.1 as the first pypi package
* `scc version` is broken as a pip package. See below

```
$ scc version
Traceback (most recent call last):
File "/usr/local/bin/scc", line 8, in
load_entry_point('scc==0.3.1', 'console_scripts', 'scc')()
File "build/bdist.macosx-10.6-universal/egg/scc.py", line 1827, in entry_point
File "build/bdist.macosx-10.6-universal/egg/scc.py", line 1818, in main
File "build/bdist.macosx-10.6-universal/egg/scc.py", line 1711, in __call__
File "build/bdist.macosx-10.6-universal/egg/scc.py", line 95, in hash_object
File "/usr/local/./bin/../lib/python2.6/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 20] Not a directory: '/usr/local/lib/python2.6/site-packages/scc-0.3.1-py2.6.egg/scc.pyc'
```