Anonymous avatar Anonymous committed 605326d

Installation script to bin directory.

Comments (0)

Files changed (3)

     license = release.license,
     packages = find_packages(SRC_DIR),
     package_dir = {'': SRC_DIR},
+    package_data = {
+      '': ['logging.conf']
+    },
     classifiers = [
       'License :: OSI Approved :: Apache Software License',
     ],
+    zip_safe = True,
+
     entry_points = {
       'console_scripts': [
-        'hornet = hornet.command.main',
+        'hornet = hornet.command:main',
       ],
     },
 
     #test_suite = 'nose.collector',
-    install_requires = ['matplotlib', 'numpy', 'decorator',
-                        'networkx', 'sqlalchemy'], #'wxPython', 'configobj', 
+    #install_requires = ['matplotlib', 'numpy', 'decorator',
+    #                    'networkx', 'sqlalchemy'], #'wxPython', 'configobj', 
     #setup_requires = ['sphinx==0.6.1', 'mock==0.5.0', 'nose=0.10.4', 'NoseXUnit==0.3.2', 'coverage==2.85'],
 )
 
     virtualenv=Bunch(
         script_name = BOOTSTRAP_SCRIPT,
         packages_to_install = ['sphinx==0.6.1', 'mock==0.5.0', 'nose=0.10.4', 
-                               'NoseXUnit==0.3.2', 'coverage==2.85', 'networkx==1.0.dev', 
+                               'NoseXUnit==0.3.2', 'coverage==2.85', 'networkx', 
                                'decorator', 'sqlalchemy==0.5.3', 'numpy==1.3.0'], 
                                #FIXME get matplotlib installed 'matplotlib==0.91.1'
     )
 )
 
 @task
+def clean():
+    path('build').rmtree()
+
+@task
 def bootstrap():
     """create virtualenv in ./bootstrap"""
     install = paver.path.path(BOOTSTRAP_DIR)

src/hornet/__init__.py

 
 .. moduleauthor:: John Paulett <john.paulett -at- vanderbilt.edu>
 """
-

src/hornet/command.py

 from hornet.release import version
 from optparse import OptionParser
 import logging
+import logging.config
 import os
 
 #import sys
     return options, args
 
 def main():
-    logging.config.fileConfig(join(get_dir(__file__), 'logging.conf'))
+    logfile = join(get_dir(__file__), 'logging.conf')
+    logging.config.fileConfig(logfile)
     logger = logging.getLogger(__name__)
     
     options, args = _optparse()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.