Skip to content

Commit 3fb2c8d

Browse files
authored
Fix sdist make (#10366)
1 parent f667a40 commit 3fb2c8d

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGES/10366.packaging

Lines changed: 2 additions & 0 deletions
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.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
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

Makefile

Lines changed: 3 additions & 0 deletions
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

tools/gen.py

Lines changed: 1 addition & 1 deletion
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)