Skip to content

Commit db2a367

Browse files
[PR #10366/3fb2c8df backport][3.12] Fix sdist make (#10368)
**This is a backport of PR #10366 as merged into master (3fb2c8d).** Co-authored-by: Michał Górny <[email protected]>
1 parent c990568 commit db2a367

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Diff for: CHANGES/10366.packaging

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added missing files to the source distribution to fix ``Makefile`` targets.
2+
Added a ``cythonize-nodeps`` target to run Cython without invoking pip to install dependencies.

Diff for: MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ graft aiohttp
77
graft docs
88
graft examples
99
graft tests
10+
graft tools
1011
graft requirements
1112
recursive-include vendor *
1213
global-include aiohttp *.pyi

Diff for: Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ generate-llhttp: .llhttp-gen
8181
.PHONY: cythonize
8282
cythonize: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c
8383

84+
.PHONY: cythonize-nodeps
85+
cythonize-nodeps: $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c
86+
8487
.install-deps: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c $(call to-hash,$(CYS) $(REQS))
8588
@python -m pip install -r requirements/dev.in -c requirements/dev.txt
8689
@touch .install-deps

Diff for: tools/gen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import multidict
88

99
ROOT = pathlib.Path.cwd()
10-
while ROOT.parent != ROOT and not (ROOT / ".git").exists():
10+
while ROOT.parent != ROOT and not (ROOT / "pyproject.toml").exists():
1111
ROOT = ROOT.parent
1212

1313

0 commit comments

Comments
 (0)