-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Explicitly define the build/lib* path to ensure the correct one …
…is used.
- Loading branch information
1 parent
43a2db9
commit adc4aed
Showing
7 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/build_with_build_py_only/README.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Module 1 | ||
======== |
15 changes: 15 additions & 0 deletions
15
tests/masonry/builders/fixtures/build_with_build_py_only/build.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from pathlib import Path | ||
from setuptools.command.build_py import build_py | ||
|
||
|
||
class BuildPyCommand(build_py): | ||
def run(self): | ||
gen_file = Path("build_with_build_py_only/generated/file.py") | ||
gen_file.touch() | ||
ret = super().run() | ||
gen_file.unlink() | ||
return ret | ||
|
||
|
||
def build(setup_kwargs): | ||
setup_kwargs["cmdclass"] = {"build_py": BuildPyCommand} |
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions
16
tests/masonry/builders/fixtures/build_with_build_py_only/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "build_with_build_py_only" | ||
version = "0.1" | ||
description = "Some description." | ||
authors = [ | ||
"Robert Belter <[email protected]>" | ||
] | ||
license = "MIT" | ||
|
||
readme = "README.rst" | ||
|
||
homepage = "https://python-poetry.org/" | ||
|
||
[tool.poetry.build] | ||
script = "build.py" | ||
generate-setup-file = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters