test_repo / setup.py
maleonly's picture
Update setup.py
818ac9c verified
Raw History Blame Contribute Delete
724 Bytes
import atexit
from setuptools import setup, find_packages
from setuptools.command.install import install
def _post_install():
print('POST INSTALL')
class NewInstall(install):
def __init__(self, *args, **kwargs):
super(NewInstall, self).__init__(*args, **kwargs)
atexit.register(_post_install)
def run(self):
# Вызываем стандартный метод run
install.run(self)
# Здесь могут быть другие действия, если они необходимы
setup(
name='test_repo',
version='0.8',
packages=find_packages(),
cmdclass={
'install': NewInstall,
},
# ... другие параметры setup ...
)