Skip to content

Commit

Permalink
Merge pull request #89 from utek/new-scripts
Browse files Browse the repository at this point in the history
Changed scripts to be installed using entry_points
  • Loading branch information
rdowinton committed Apr 10, 2015
2 parents 47fd6ae + b670f5e commit 98067ff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Empty file added scrapyd/scripts/__init__.py
Empty file.
File renamed without changes.
7 changes: 5 additions & 2 deletions bin/scrapyd → scrapyd/scripts/scrapyd_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
from os.path import join, dirname
from sys import argv
import scrapyd
argv[1:1] = ['-n', '-y', join(dirname(scrapyd.__file__), 'txapp.py')]
run()


def main():
argv[1:1] = ['-n', '-y', join(dirname(scrapyd.__file__), 'txapp.py')]
run()
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'maintainer_email': 'info@scrapy.org',
'license': 'BSD',
'packages': ['scrapyd'],
'scripts': ['bin/scrapyd', 'bin/scrapyd-deploy'],
# 'scripts': ['bin/scrapyd', 'bin/scrapyd-deploy'],
'include_package_data': True,
'zip_safe': False,
'classifiers': [
Expand All @@ -28,6 +28,11 @@
'Environment :: No Input/Output (Daemon)',
'Topic :: Internet :: WWW/HTTP',
],
'entry_points': '''\
[console_scripts]
scrapyd = scrapyd.scripts.scrapyd_run:main
scrapy-deploy = scrapyd.scripts.scrapy_deploy:main
'''
}

try:
Expand Down

0 comments on commit 98067ff

Please sign in to comment.