File: python-dist.diff

package info (click to toggle)
snowball 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: ansic: 15,641; ada: 849; python: 531; cs: 485; pascal: 473; java: 473; javascript: 411; perl: 312; sh: 40; makefile: 17
file content (24 lines) | stat: -rw-r--r-- 954 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sun, 24 Jan 2021 19:07:24 -0700
Subject: Preserve the Python source directory instead of deleting it

Forwarded: not-needed
---
 GNUmakefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index c9754be..fc05d93 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -487,9 +487,7 @@ dist_libstemmer_python: $(PYTHON_SOURCES) $(COMMON_FILES)
 	cp -a $(PYTHON_SOURCES) $${dest}/src/$(python_runtime_dir) && \
 	cp -a $(PYTHON_SAMPLE_SOURCES) $${dest}/src/$(python_sample_dir) && \
 	cp -a $(PYTHON_RUNTIME_SOURCES) $${dest}/src/$(python_runtime_dir) && \
-	cp -a $(COMMON_FILES) $(PYTHON_PACKAGE_FILES) $${dest} && \
-	(cd $${dest} && $(python) -m build && cp dist/*.tar.gz dist/*.whl ..) && \
-	rm -rf $${dest}
+	cp -a $(COMMON_FILES) $(PYTHON_PACKAGE_FILES) $${dest}
 
 dist_libstemmer_js: $(JS_SOURCES) $(COMMON_FILES)
 	destname=jsstemmer-$(SNOWBALL_VERSION); \