From ef71fb385c37a152b64839f7265973ef556a58f5 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 5 Oct 2016 20:04:14 +0200 Subject: [PATCH] fix setup.py with script --- setup.py | 10 ++++++---- src/fenrir/{fenrir.py => fenrir} | 6 +++++- 2 files changed, 11 insertions(+), 5 deletions(-) rename src/fenrir/{fenrir.py => fenrir} (99%) diff --git a/setup.py b/setup.py index aab85009..5a3d0148 100755 --- a/setup.py +++ b/setup.py @@ -18,11 +18,12 @@ setup( author_email="chrys87@web.de", # Packages - packages=find_packages('src/fenrir'), + packages=find_packages('fenrir'), package_dir={'': 'src/fenrir'}, - entry_points = { - "console_scripts": ['fenrir = fenrir:fenrir'] - }, + scripts=['src/fenrir/fenrir'], + #entry_points = { + # "console_scripts": ['fenrir = fenrir:main'] + # }, # Include additional files into the package include_package_data=True, @@ -46,4 +47,5 @@ setup( ) +print(find_packages()) diff --git a/src/fenrir/fenrir.py b/src/fenrir/fenrir similarity index 99% rename from src/fenrir/fenrir.py rename to src/fenrir/fenrir index e6c9a99d..a2c0248c 100755 --- a/src/fenrir/fenrir.py +++ b/src/fenrir/fenrir @@ -127,7 +127,11 @@ class fenrir(): time.sleep(0.2) # wait a little before splatter it :) self.environment = None -if __name__ == "__main__": +def main(): + #if __name__ == "__main__": app = fenrir() app.proceed() del app + +if __name__ == "__main__": + main()