Skip to content

Commit

Permalink
pybamm-team#3049 some installation cleanups (nox)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal authored and js1tr3 committed Aug 12, 2024
1 parent a559247 commit d8a7cfe
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
try:
from setuptools import setup, Extension
from setuptools.command.install import install
from setuptools.command.build_ext import build_ext
except ImportError:
from distutils.core import setup
from distutils.command.install import install
from distutils.command.build_ext import build_ext

# ---------- cmakebuild was integrated into setup.py directly --------------------------

try:
from setuptools.command.build_ext import build_ext
except ImportError:
from distutils.command.build_ext import build_ext
# ---------- CMake steps for IDAKLU target (non-Windows) -------------------------------


default_lib_dir = (
"" if system() == "Windows" else os.path.join(os.getenv("HOME"), ".local")
Expand Down Expand Up @@ -171,10 +170,13 @@ def move_output(self, ext):
dest_directory.mkdir(parents=True, exist_ok=True)
self.copy_file(source_path, dest_path)

# ---------- end of cmakebuild steps ---------------------------------------------------

# ---------- end of CMake steps --------------------------------------------------------


# ---------- configure setup logger ----------------------------------------------------


log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
logger = logging.getLogger("PyBaMM setup")

Expand Down Expand Up @@ -215,8 +217,10 @@ def finalize_options(self):
def run(self):
install.run(self)


# ---------- custom wheel build (non-Windows) ------------------------------------------


class bdist_wheel(orig.bdist_wheel):
"""A custom install command to add 2 build options"""

Expand Down

0 comments on commit d8a7cfe

Please sign in to comment.