From 35b5c2181bdda1b6c4a755464ad01cc041818a7f Mon Sep 17 00:00:00 2001 From: OpenVMP Date: Mon, 2 Sep 2024 23:13:24 -0700 Subject: [PATCH] Added an explicit dependency on numpy 1 (#181) * Added an explicit dependency on numpy 1 * Fixed numpy version * Fixed typo * Drop nptyping --- partcad/requirements.txt | 1 + partcad/src/partcad/runtime_python.py | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/partcad/requirements.txt b/partcad/requirements.txt index 7607ee0..57e8935 100644 --- a/partcad/requirements.txt +++ b/partcad/requirements.txt @@ -1,6 +1,7 @@ build123d>=0.5.0 cadquery>=2.4.0 numpy>=1.24.1,<2 +ocp_tessellate scipy>=1.11.1 pyyaml>=6.0.1 GitPython>=3.1.40 diff --git a/partcad/src/partcad/runtime_python.py b/partcad/src/partcad/runtime_python.py index bc53c6f..83c5925 100644 --- a/partcad/src/partcad/runtime_python.py +++ b/partcad/src/partcad/runtime_python.py @@ -57,10 +57,10 @@ async def run(self, cmd, stdin="", cwd=None): stdout = stdout.decode() stderr = stderr.decode() - if stdout: - pc_logging.debug("Output of %s: %s" % (cmd, stdout)) - if stderr: - pc_logging.debug("Error of %s: %s" % (cmd, stderr)) + # if stdout: + # pc_logging.debug("Output of %s: %s" % (cmd, stdout)) + # if stderr: + # pc_logging.debug("Error of %s: %s" % (cmd, stderr)) # TODO(clairbee): remove the below when a better troubleshooting mechanism is introduced # f = open("/tmp/log", "w") @@ -87,9 +87,7 @@ async def ensure(self, python_package): with pc_logging.Action( "PipInst", self.version, python_package ): - await self.run( - ["-m", "pip", "install", python_package] - ) + await self.run(["-m", "pip", "install", python_package]) pathlib.Path(guard_path).touch() async def prepare_for_package(self, project):