Skip to content

Commit

Permalink
remove distutils dependencies; clean now only cleans binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Sep 26, 2023
1 parent ab9dcce commit b6c8608
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from setuptools import setup
from setuptools.command.build_py import build_py
from setuptools.command.develop import develop
from distutils.command.clean import clean
from distutils.core import Command
from setuptools import Command

file_dir = os.path.abspath(os.path.dirname(__file__))
os.chdir(file_dir)
Expand Down Expand Up @@ -259,14 +258,13 @@ def run(self):
develop.run(self)


class CleanLibrary(clean):
class CleanLibrary(MakeLibrary):

def run(self):
if _compile.is_windows:
clean_dir(os.path.join(file_dir, 'fortran', 'WinDLL'), rmdir=True)
else:
subprocess.call("make clean", shell=True, cwd=os.path.join(file_dir, 'fortran'))
clean.run(self)


if __name__ == "__main__":
Expand Down

0 comments on commit b6c8608

Please sign in to comment.