Skip to content

Commit 12629af

Browse files
Fixed missing build dependency for win32api (#178)
2 parents b7cf127 + 8de95e5 commit 12629af

File tree

4 files changed

+48
-24
lines changed

4 files changed

+48
-24
lines changed

Python_Engine/Compute/VirtualEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static PythonEnvironment VirtualEnvironment(this PythonVersion version, s
108108
StartInfo = new ProcessStartInfo()
109109
{
110110
FileName = targetExecutable,
111-
Arguments = $"-m ipykernel install --name={name}",
111+
Arguments = $"-m ipykernel install --name={name} --user", //--user adds the kernel to %appdata%/jupyter/kernels, rather than to the virtualenv/share/jupyter/kernels
112112
RedirectStandardError = true,
113113
UseShellExecute = false,
114114
}

Python_Engine/Python/pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[project]
2+
name = "python_toolkit"
3+
readme = "README.md"
4+
dynamic = ["version", "description"]
5+
authors = [
6+
{ name = "BHoM", email = "[email protected]" }
7+
]
8+
dependencies = [
9+
"case-converter",
10+
"jupyterlab",
11+
"matplotlib",
12+
"numpy",
13+
"pandas",
14+
"plotly",
15+
"virtualenv",
16+
]
17+
18+
[urls]
19+
source = "https://github.com/BHoM/Python_Toolkit"
20+
21+
[build-system]
22+
requires = ["setuptools", "pywin32"]
23+
build-backend = "setuptools.build_meta"
24+
25+
[dependency-groups]
26+
dev = [
27+
"black",
28+
"ipykernel>=6.29.5",
29+
"pylint>=3.3.5",
30+
"pytest>=8.3.5",
31+
"pytest-cov>=6.0.0",
32+
"pytest-order",
33+
"sphinx>=8.1.3",
34+
"sphinx-bootstrap-theme>=0.8.1",
35+
"sphinxcontrib-fulltoc>=1.2.0",
36+
"sphinxcontrib-napoleon>=0.7",
37+
]
38+
39+
[tool.setuptools]
40+
package-dir = {"" = "src"}
41+
42+
[tool.setuptools.packages.find]
43+
where = ["src"]
44+
exclude = ["tests"]
45+
46+
[tool.pytest.ini_options]
47+
pythonpath = "src"

Python_Engine/Python/requirements.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

Python_Engine/Python/setup.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,10 @@ def _bhom_version() -> str:
1616

1717
here = Path(__file__).parent.resolve()
1818
long_description = (here / "README.md").read_text(encoding="utf-8")
19-
requirements = [
20-
i.strip()
21-
for i in (here / "requirements.txt").read_text(encoding="utf-8-sig").splitlines()
22-
]
2319

2420
setuptools.setup(
25-
name=TOOLKIT_NAME.lower(),
26-
author="BHoM",
27-
author_email="[email protected]",
2821
description=f"A Python library that contains minimal code intended to be used by the {TOOLKIT_NAME} Python environment for BHoM workflows.",
2922
long_description=long_description,
3023
long_description_content_type="text/markdown",
31-
url=f"https://github.com/BHoM/{TOOLKIT_NAME}",
32-
package_dir={"": "src"},
33-
packages=setuptools.find_packages(where="src", exclude=['tests']),
34-
install_requires=requirements,
3524
version=BHOM_VERSION,
3625
)

0 commit comments

Comments
 (0)