summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-07-04 19:11:14 -0700
committerNed Deily <nad@acm.org>2011-07-04 19:11:14 -0700
commit51970416de133728de08fc3a276d408831db7e02 (patch)
treeca64fa136a4a8fc6805893a359006a0cf2bf127a /Makefile.pre.in
parent71870230134e92d831ee1b2e4cbd971ed37a0aa2 (diff)
parentf8011eba5b29efef89614294aa218df090abde77 (diff)
downloadcpython-51970416de133728de08fc3a276d408831db7e02.tar.gz
Issue #12497: Install test/data to prevent failures of the various codecmaps
tests.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in83
1 files changed, 70 insertions, 13 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index dfa721996d..c2b1a11051 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -34,7 +34,6 @@ MAINCC= @MAINCC@
LINKCC= @LINKCC@
AR= @AR@
RANLIB= @RANLIB@
-SVNVERSION= @SVNVERSION@
SOABI= @SOABI@
LDVERSION= @LDVERSION@
HGVERSION= @HGVERSION@
@@ -74,7 +73,7 @@ PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
# be able to build extension modules using the directories specified in the
# environment variables
-PY_CPPFLAGS= -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
+PY_CPPFLAGS= -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
NO_AS_NEEDED= @NO_AS_NEEDED@
LDLAST= @LDLAST@
@@ -240,14 +239,13 @@ POBJS= \
Parser/listnode.o \
Parser/node.o \
Parser/parser.o \
- Parser/parsetok.o \
Parser/bitset.o \
Parser/metagrammar.o \
Parser/firstsets.o \
Parser/grammar.o \
Parser/pgen.o
-PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o
+PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/parsetok.o Parser/tokenizer.o
PGOBJS= \
Objects/obmalloc.o \
@@ -256,10 +254,12 @@ PGOBJS= \
Python/pyctype.o \
Parser/tokenizer_pgen.o \
Parser/printgrammar.o \
+ Parser/parsetok_pgen.o \
Parser/pgenmain.o
PARSER_HEADERS= \
Parser/parser.h \
+ Include/parsetok.h \
Parser/tokenizer.h
PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS)
@@ -554,7 +554,6 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
$(CC) -c $(PY_CORE_CFLAGS) \
- -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" \
-DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \
-DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \
-DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \
@@ -599,6 +598,7 @@ Parser/grammar.o: $(srcdir)/Parser/grammar.c \
Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c
Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c
+Parser/parsetok_pgen.o: $(srcdir)/Parser/parsetok.c
Parser/pgenmain.o: $(srcdir)/Include/parsetok.h
@@ -706,7 +706,6 @@ PYTHON_HEADERS= \
Include/objimpl.h \
Include/opcode.h \
Include/osdefs.h \
- Include/parsetok.h \
Include/patchlevel.h \
Include/pgen.h \
Include/pgenheaders.h \
@@ -759,6 +758,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
TESTOPTS= -l $(EXTRATESTOPTS)
TESTPROG= $(srcdir)/Lib/test/regrtest.py
TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -E -bb $(TESTPYTHONOPTS)
+TESTTIMEOUT= 3600
test: all platform
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
@@ -790,7 +790,7 @@ buildbottest: all platform
-@if which pybuildbot.identify >/dev/null 2>&1; then \
pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
fi
- $(TESTPYTHON) $(TESTPROG) -uall -rwW $(TESTOPTS)
+ $(TESTPYTHON) $(TESTPROG) -uall -rwW --timeout=$(TESTTIMEOUT) $(TESTOPTS)
QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
test_multibytecodec test_urllib2_localnet test_itertools \
@@ -889,6 +889,8 @@ bininstall: altbininstall
(cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
-rm -f $(DESTDIR)$(BINDIR)/2to3
(cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
+ -rm -f $(DESTDIR)$(BINDIR)/pysetup3
+ (cd $(DESTDIR)$(BINDIR); $(LN) -s pysetup$(VERSION) pysetup3)
# Install the manual page
maninstall:
@@ -911,20 +913,72 @@ XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
tkinter/test/test_ttk site-packages test \
test/capath test/data \
- test/cjkencodings test/decimaltestdata test/xmltestdata test/subprocessdata \
+ test/cjkencodings test/decimaltestdata test/xmltestdata \
+ test/subprocessdata \
test/tracedmodules test/encoded_modules \
- concurrent concurrent/futures encodings \
- email email/mime email/test email/test/data \
+ collections concurrent concurrent/futures encodings \
+ email email/mime test/test_email test/test_email/data \
html json test/json_tests http dbm xmlrpc \
sqlite3 sqlite3/test \
logging csv wsgiref urllib \
lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
- lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
+ lib2to3/tests/data lib2to3/tests/data/fixers \
+ lib2to3/tests/data/fixers/myfixes \
ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons \
distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
importlib importlib/test importlib/test/builtin \
importlib/test/extension importlib/test/frozen \
importlib/test/import_ importlib/test/source \
+ packaging packaging/command packaging/compiler \
+ packaging/pypi packaging/tests \
+ packaging/tests/fake_dists \
+ packaging/tests/fake_dists/babar-0.1.dist-info \
+ packaging/tests/fake_dists/bacon-0.1.egg-info \
+ packaging/tests/fake_dists/banana-0.4.egg \
+ packaging/tests/fake_dists/banana-0.4.egg/EGG-INFO \
+ packaging/tests/fake_dists/choxie-2.0.0.9 \
+ packaging/tests/fake_dists/choxie-2.0.0.9/choxie \
+ packaging/tests/fake_dists/choxie-2.0.0.9.dist-info \
+ packaging/tests/fake_dists/coconuts-aster-10.3.egg-info \
+ packaging/tests/fake_dists/grammar-1.0a4 \
+ packaging/tests/fake_dists/grammar-1.0a4.dist-info \
+ packaging/tests/fake_dists/grammar-1.0a4/grammar \
+ packaging/tests/fake_dists/towel_stuff-0.1 \
+ packaging/tests/fake_dists/towel_stuff-0.1.dist-info \
+ packaging/tests/fake_dists/towel_stuff-0.1/towel_stuff \
+ packaging/tests/fixer packaging/tests/pypiserver \
+ packaging/tests/pypiserver/downloads_with_md5 \
+ packaging/tests/pypiserver/downloads_with_md5/packages \
+ packaging/tests/pypiserver/downloads_with_md5/packages/source \
+ packaging/tests/pypiserver/downloads_with_md5/packages/source/f \
+ packaging/tests/pypiserver/downloads_with_md5/packages/source/f/foobar \
+ packaging/tests/pypiserver/downloads_with_md5/simple \
+ packaging/tests/pypiserver/downloads_with_md5/simple/badmd5 \
+ packaging/tests/pypiserver/downloads_with_md5/simple/foobar \
+ packaging/tests/pypiserver/foo_bar_baz \
+ packaging/tests/pypiserver/foo_bar_baz/simple \
+ packaging/tests/pypiserver/foo_bar_baz/simple/bar \
+ packaging/tests/pypiserver/foo_bar_baz/simple/baz \
+ packaging/tests/pypiserver/foo_bar_baz/simple/foo \
+ packaging/tests/pypiserver/project_list \
+ packaging/tests/pypiserver/project_list/simple \
+ packaging/tests/pypiserver/test_found_links \
+ packaging/tests/pypiserver/test_found_links/simple \
+ packaging/tests/pypiserver/test_found_links/simple/foobar \
+ packaging/tests/pypiserver/test_pypi_server \
+ packaging/tests/pypiserver/test_pypi_server/external \
+ packaging/tests/pypiserver/test_pypi_server/simple \
+ packaging/tests/pypiserver/with_externals \
+ packaging/tests/pypiserver/with_externals/external \
+ packaging/tests/pypiserver/with_externals/simple \
+ packaging/tests/pypiserver/with_externals/simple/foobar \
+ packaging/tests/pypiserver/with_norel_links \
+ packaging/tests/pypiserver/with_norel_links/external \
+ packaging/tests/pypiserver/with_norel_links/simple \
+ packaging/tests/pypiserver/with_norel_links/simple/foobar \
+ packaging/tests/pypiserver/with_real_externals \
+ packaging/tests/pypiserver/with_real_externals/simple \
+ packaging/tests/pypiserver/with_real_externals/simple/foobar \
turtledemo \
multiprocessing multiprocessing/dummy \
unittest unittest/test \
@@ -949,7 +1003,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
else true; \
fi; \
done
- @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.egg-info ; \
+ @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.cfg ; \
do \
if test -x $$i; then \
$(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
@@ -989,6 +1043,10 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
$(DESTDIR)$(LIBDEST)/distutils/tests ; \
fi
+ if test -d $(DESTDIR)$(LIBDEST)/packaging/tests; then \
+ $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
+ $(DESTDIR)$(LIBDEST)/packaging/tests ; \
+ fi
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \
@@ -1284,7 +1342,6 @@ smelly: all
# Find files with funny names
funny:
find $(DISTDIRS) \
- -name .svn -prune \
-o -type d \
-o -name '*.[chs]' \
-o -name '*.py' \