diff --git a/python/setup.py b/python/setup.py index cd94c65cb..cc19e295e 100755 --- a/python/setup.py +++ b/python/setup.py @@ -1,9 +1,8 @@ #!/usr/bin/env python3 import os.path import re -from distutils.errors import DistutilsError -from setuptools import Command, find_packages, setup +from setuptools import find_packages, setup install_requires = [ "setuptools>=19.0", @@ -35,20 +34,6 @@ def find_version(): raise RuntimeError("Version string not found") -class PrebuildCommand(Command): - description = "Deprecated. Run 'make gen' instead." - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - raise DistutilsError(self.description) - - setup( name="trezor", version=find_version(), @@ -58,7 +43,7 @@ setup( description="Python library for communicating with Trezor Hardware Wallet", long_description="{}\n\n{}".format(read("README.md"), read("CHANGELOG.md")), long_description_content_type="text/markdown", - url="https://github.com/trezor/python-trezor", + url="https://github.com/trezor/trezor-firmware/tree/master/python", packages=find_packages("src"), package_dir={"": "src"}, entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]}, @@ -77,5 +62,4 @@ setup( "Operating System :: MacOS :: MacOS X", "Programming Language :: Python :: 3 :: Only", ], - cmdclass={"prebuild": PrebuildCommand}, )