Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --wheel to the make dist target #47

Merged
merged 1 commit into from Apr 22, 2022
Merged

Conversation

pablogsal
Copy link
Member

Closes: #30

When we build the distribution without "--wheel", build_ext gets
called during "python -m build" from the temporary build directory,
while with "--wheel" the files built during "make build" are copied into
the created wheel. This allows the build to be more reproducible as in
this way the DWARF included in the extension to not change due to the
temporary directory path being part of it.

When we build the distribution without "--wheel", `build_ext` gets
called during "python -m build" from the temporary build directory,
while with "--wheel" the files built during "make build" are copied into
the created wheel. This allows the build to be more reproducible as in
this way the DWARF included in the extension to not change due to the
temporary directory path being part of it.
@pablogsal pablogsal merged commit 0571584 into bloomberg:main Apr 22, 2022
@@ -42,7 +42,7 @@ build-js: $(generated_js_files) ## Build package assets in-place

.PHONY: dist
dist: ## Generate Python distribution files
$(PYTHON) -m build .
$(PYTHON) -m build --wheel .
Copy link
Member

Choose a reason for hiding this comment

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

You likely need a --sdist as well, otherwise this will only generate a wheel.

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.

Make memray reproducible
3 participants