Skip to content

setup.py: cosmetic clean-up#140

Merged
crusaderky merged 2 commits into
explosion:mainfrom
crusaderky:setup_cleanup
Dec 2, 2025
Merged

setup.py: cosmetic clean-up#140
crusaderky merged 2 commits into
explosion:mainfrom
crusaderky:setup_cleanup

Conversation

@crusaderky

Copy link
Copy Markdown
Contributor

Backport from the work on free-threading.
This PR improves readability of setup.py, without introducing any functional changes.

Comment thread setup.py
self.compiler.compiler = [locate_windows_llvm()]
self.compiler.compiler_so = list(self.compiler.compiler)
self.compiler.preprocessor = list(self.compiler.compiler)
self.compiler.linker = list(self.compiler.compiler) + ["-shared"]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This attribute does not exist on unix.Compiler.

@ngoldbaum ngoldbaum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one question about the gitignore change since that's unrelated to the rest of this.

Comment thread .gitignore
.pytest_cache
blis.egg-info/
tmp/
z/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build directory:

cython-blis/setup.py

Lines 105 to 109 in 9dbe572

# Work around max line length in Windows, by making a local directory
# for the objects
short_dir = "z"
if not os.path.exists(short_dir):
os.mkdir(short_dir)

I've added a comment

@crusaderky
crusaderky merged commit fa4dd26 into explosion:main Dec 2, 2025
44 checks passed
@crusaderky
crusaderky deleted the setup_cleanup branch December 3, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants