Created
January 11, 2023 06:08
-
-
Save perryism/29222cd8ef737bda47ca042de804e6d7 to your computer and use it in GitHub Desktop.
Make python package executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run(): | |
print('Hello world') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup | |
setup( | |
name='myscript', | |
version='0.0.1', | |
entry_points={ | |
'console_scripts': [ | |
'myscript=myscript:run' | |
] | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment