Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 8ce279c

Browse files
author
Matthias Koeppe
committed
sdist* Makefile targets
1 parent 765c5cb commit 8ce279c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/Makefile.in

+32
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
abs_builddir = @abs_builddir@
44
srcdir = @srcdir@
55
abs_top_srcdir = @abs_top_srcdir@
6+
PACKAGE_VERSION = @PACKAGE_VERSION@
67

78
.PHONY: all sage clean
89

@@ -48,3 +49,34 @@ clean:
4849
rm -rf build
4950
find . -name '*.pyc' | xargs rm -f
5051
rm -rf sage/ext/interpreters
52+
53+
.PHONY: sdist sdistcheck
54+
sdist:
55+
cd $(srcdir) \
56+
&& export SAGE_ROOT=/doesnotexist \
57+
SAGE_SRC=/doesnotexist \
58+
SAGE_SRC_ROOT=/doesnotexist \
59+
SAGE_DOC_SRC=/doesnotexist \
60+
SAGE_SCRIPTS_DIR=/doesnotexist \
61+
SAGE_BUILD_DIR=/doesnotexist \
62+
SAGE_PKGS=$(abs_top_srcdir)/build/pkgs \
63+
SAGE_CYTHONIZED=$(abs_builddir)/build/cythonized \
64+
&& python -u setup.py sdist --formats=bztar
65+
66+
sdistcheck-unpack:
67+
rm -rf sage-$(PACKAGE_VERSION) \
68+
&& tar xf dist/sage-$(PACKAGE_VERSION).tar.bz2
69+
70+
sdistcheck-build:
71+
cd sage-$(PACKAGE_VERSION) \
72+
&& export SAGE_ROOT=/doesnotexist \
73+
SAGE_SRC=/doesnotexist \
74+
SAGE_SRC_ROOT=/doesnotexist \
75+
SAGE_DOC_SRC=/doesnotexist \
76+
SAGE_SCRIPTS_DIR=/doesnotexist \
77+
SAGE_BUILD_DIR=/doesnotexist \
78+
SAGE_PKGS=$(abs_top_srcdir)/build/pkgs \
79+
SAGE_CYTHONIZED=`pwd`/build/cythonized \
80+
&& python -u setup.py install
81+
82+
sdistcheck: sdist sdistcheck-unpack sdistcheck-build

0 commit comments

Comments
 (0)