Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom setup.py commands with newer setuptools #451

Merged
merged 1 commit into from Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions setup.py
Expand Up @@ -30,24 +30,24 @@ def read(*names, **kwargs):


class BuildWithPTH(build):
def run(self):
build.run(self)
def run(self, *args, **kwargs):
build.run(self, *args, **kwargs)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.build_lib, basename(path))
self.copy_file(path, dest)


class EasyInstallWithPTH(easy_install):
def run(self):
easy_install.run(self)
def run(self, *args, **kwargs):
easy_install.run(self, *args, **kwargs)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))
self.copy_file(path, dest)


class InstallLibWithPTH(install_lib):
def run(self):
install_lib.run(self)
def run(self, *args, **kwargs):
install_lib.run(self, *args, **kwargs)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))
self.copy_file(path, dest)
Expand All @@ -58,8 +58,8 @@ def get_outputs(self):


class DevelopWithPTH(develop):
def run(self):
develop.run(self)
def run(self, *args, **kwargs):
develop.run(self, *args, **kwargs)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))
self.copy_file(path, dest)
Expand Down