Skip to content

Commit

Permalink
[setup] Actually fix install problems
Browse files Browse the repository at this point in the history
I have the memory of a squirrel.
  • Loading branch information
embolalia committed Jun 28, 2013
1 parent 389a668 commit 0123e3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

def do_setup():
try:
# This special screwing is to make willie.py get installed to PATH as
# willie, not willie.py. Don't remove it, or you'll break it.
tmp_dir = tempfile.mkdtemp()
tmp_main_script = os.path.join(tmp_dir, 'willie')
shutil.copy('willie.py', tmp_main_script)
Expand All @@ -22,6 +24,10 @@ def do_setup():
long_description="""Willie is a simple, lightweight, open source, easy-to-use IRC Utility bot, written in Python. It's designed to be easy to use, easy to run, and easy to make new features for. """,
packages=['willie', 'willie.modules'],
scripts=[tmp_main_script],
# This line makes willie.py get included in the manifest
# automatically, but just dumps it because the above is putting
# it where it actually needs to be.
data_files=[(tmp_dir, ['willie.py'])],
license='Eiffel Forum License, version 2',
platforms='Linux x86, x86-64',
requires=['MySQLdb', 'feedparser', 'pytz', 'lxml', 'praw', 'enchant', 'pygeoip']
Expand Down

0 comments on commit 0123e3f

Please sign in to comment.