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

purge unnecessary setup.py copy_copyright function #4950

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
from shutil import copyfile
import sys

from setuptools import Command, setup
Expand All @@ -23,13 +22,6 @@ def run(self):
pass


def copy_copyright(cmd, directory):
# Copy the COPYRIGHT information into the package root
iris_build_dir = os.path.join(directory, "iris")
for fname in ["COPYING", "COPYING.LESSER"]:
copyfile(fname, os.path.join(iris_build_dir, fname))


def build_std_names(cmd, directory):
# Call out to tools/generate_std_names.py to build std_names module.

Expand Down Expand Up @@ -70,7 +62,7 @@ def run(self):

custom_commands = {
"develop": custom_cmd(develop_cmd, [build_std_names]),
"build_py": custom_cmd(build_py, [build_std_names, copy_copyright]),
"build_py": custom_cmd(build_py, [build_std_names]),
"std_names": custom_cmd(
BaseCommand,
[build_std_names],
Expand Down