Skip to content

Commit b9204dc

Browse files
committed
updated pyproject.toml and setup.py
1 parent daf94bc commit b9204dc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ jobs:
3939
run: |
4040
echo "OS: ${{ matrix.os }}"
4141
echo "Python Version: ${{ matrix.python-version }}"
42+
python -m sysconfig
43+
echo "Python include: $(python -c 'import sysconfig; print(sysconfig.get_path("include"))')"
44+
echo "Python libdir: $(python -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))')"
4245
python --version
4346
pip list
4447
4548
- name: Install dependencies
4649
run: |
4750
python -m pip install --upgrade pip
48-
pip install -e '.[test]'
51+
# pip install -e '.[test]'
52+
pip install .
4953
5054
- name: Run tests with pytest
5155
run: |
@@ -77,3 +81,7 @@ jobs:
7781
black --check optimrl tests
7882
isort --check-only optimrl tests
7983
flake8 optimrl tests
84+
85+
- name: Upgrade setuptools
86+
run: python -m pip install --upgrade setuptools wheel
87+

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ class CustomBuildExt(build_ext):
1717

1818
def build_extensions(self):
1919
# Set platform-specific compiler flags
20+
for ext in self.extensions:
21+
print(f"Building extension: {ext.name}")
22+
print(f"Include dirs: {ext.include_dirs}")
23+
print(f"Library dirs: {ext.library_dirs}")
24+
super().build_extensions()
25+
2026
compiler_type = self.compiler.compiler_type
2127
for ext in self.extensions:
2228
if compiler_type == 'unix':

0 commit comments

Comments
 (0)