pip package

This commit is contained in:
Zen 2020-04-23 12:52:46 +03:00
parent d809c4fb39
commit c51a59483e
2 changed files with 14 additions and 11 deletions

View file

@ -946,15 +946,17 @@ class Av1an:
print('No valid work mode')
exit()
def main():
# Windows fix for multiprocessing
multiprocessing.freeze_support()
# Main thread
try:
Av1an().main_thread()
except KeyboardInterrupt:
print('Encoding stopped')
sys.exit()
if __name__ == '__main__':
# Windows fix for multiprocessing
multiprocessing.freeze_support()
# Main thread
try:
Av1an().main()
except KeyboardInterrupt:
print('Encoding stopped')
sys.exit()
main()

View file

@ -24,7 +24,8 @@ setuptools.setup(
url="https://github.com/master-of-zen/Av1an",
packages=setuptools.find_packages('.', exclude='tests'),
install_requires=REQUIRES,
entry_points={"console_scripts": ["Av1an=av1an:main"]}
py_modules=['av1an'],
entry_points={"console_scripts": ["av1an=av1an:main"]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",