[New-bugs-announce] [issue15431] Cannot build importlib.h on Windows

Amaury Forgeot d'Arc report at bugs.python.org
Mon Jul 23 08:21:50 CEST 2012


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

On Windows, the _freeze_importlib tool is not built, so it's not possible to refresh the file Python/importlib.h, which makes development on the importlib very difficult on Windows.

The Makefile contains the rules below, it's probably necessary to implement a similar behavior in a new build project:

Modules/_freeze_importlib: Modules/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
	$(LINKCC) $(PY_LDFLAGS) -o $@ Modules/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)

Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Modules/_freeze_importlib.c
	$(MAKE) Modules/_freeze_importlib
	./Modules/_freeze_importlib \
		$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h

----------
components: Build, Windows
messages: 166209
nosy: amaury.forgeotdarc, brian.curtin
priority: high
severity: normal
status: open
title: Cannot build importlib.h on Windows
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15431>
_______________________________________


More information about the New-bugs-announce mailing list