Mercurial > cpython-lru_cache-weakref
annotate PC/python3.mak @ 87690:66c1c9f32567 default tip
Add use_weakref option to functools.lru_cache
The use_weakref option makes lru_cache create weak references to the function
arguments when creating the cache key, which prevents them from staying in the
memory forever even after all other references to them are gone.
This is a proof of concept for http://bugs.python.org/issue19859
| author | Radomir Dopieralski <devel@sheep.art.pl> |
|---|---|
| date | Tue, 03 Dec 2013 16:02:48 +0100 |
| parents | 5645792a524f |
| children |
| rev | line source |
|---|---|
|
79240
1085b0e475d8
Bump version to 3.4.0 alpha 0.
Georg Brandl <georg@python.org>
parents:
77641
diff
changeset
|
1 $(OutDir)python3.dll: python3.def $(OutDir)python34stub.lib |
|
1085b0e475d8
Bump version to 3.4.0 alpha 0.
Georg Brandl <georg@python.org>
parents:
77641
diff
changeset
|
2 cl /LD /Fe$(OutDir)python3.dll python3dll.c python3.def $(OutDir)python34stub.lib |
|
68253
1ea492ea40fd
Add updated .hgeol file and fix newlines in the 3.2 branch.
Georg Brandl <georg@python.org>
parents:
66755
diff
changeset
|
3 |
|
79240
1085b0e475d8
Bump version to 3.4.0 alpha 0.
Georg Brandl <georg@python.org>
parents:
77641
diff
changeset
|
4 $(OutDir)python34stub.lib: python34stub.def |
|
1085b0e475d8
Bump version to 3.4.0 alpha 0.
Georg Brandl <georg@python.org>
parents:
77641
diff
changeset
|
5 lib /def:python34stub.def /out:$(OutDir)python34stub.lib /MACHINE:$(MACHINE) |
|
68253
1ea492ea40fd
Add updated .hgeol file and fix newlines in the 3.2 branch.
Georg Brandl <georg@python.org>
parents:
66755
diff
changeset
|
6 |
|
1ea492ea40fd
Add updated .hgeol file and fix newlines in the 3.2 branch.
Georg Brandl <georg@python.org>
parents:
66755
diff
changeset
|
7 clean: |
|
87283
748f007b23fd
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
Christian Heimes <christian@cheimes.de>
parents:
77641
diff
changeset
|
8 IF EXIST $(OutDir)python3.dll del $(OutDir)python3.dll |
|
748f007b23fd
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
Christian Heimes <christian@cheimes.de>
parents:
77641
diff
changeset
|
9 IF EXIST $(OutDir)python3.lib del $(OutDir)python3.lib |
|
87284
5645792a524f
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
Christian Heimes <christian@cheimes.de>
diff
changeset
|
10 IF EXIST $(OutDir)python34stub.lib del $(OutDir)python34stub.lib |
|
87283
748f007b23fd
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
Christian Heimes <christian@cheimes.de>
parents:
77641
diff
changeset
|
11 IF EXIST $(OutDir)python3.exp del $(OutDir)python3.exp |
|
87284
5645792a524f
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
Christian Heimes <christian@cheimes.de>
diff
changeset
|
12 IF EXIST $(OutDir)python34stub.exp del $(OutDir)python34stub.exp |
|
68253
1ea492ea40fd
Add updated .hgeol file and fix newlines in the 3.2 branch.
Georg Brandl <georg@python.org>
parents:
66755
diff
changeset
|
13 |
|
77639
b6efb4c2995b
The build target of this makefile is python3.dll, not python32.dll.
Martin v. Löwis <martin@v.loewis.de>
parents:
68253
diff
changeset
|
14 rebuild: clean $(OutDir)python3.dll |
