Skip to content

Commit

Permalink
purge unnecessary setup.py copy_copyright function (#4950)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Sep 8, 2022
1 parent 90bf928 commit 108ea8d
Showing 1 changed file with 1 addition and 9 deletions.
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

0 comments on commit 108ea8d

Please sign in to comment.