Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
41fca9d1
Kaydet (Commit)
41fca9d1
authored
Eyl 12, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updates zip and nuget builds for Windows.
üst
476bd5ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
make_zip.py
Tools/msi/make_zip.py
+19
-21
make_pkg.proj
Tools/nuget/make_pkg.proj
+1
-0
No files found.
Tools/msi/make_zip.py
Dosyayı görüntüle @
41fca9d1
...
@@ -92,23 +92,23 @@ def include_in_tools(p):
...
@@ -92,23 +92,23 @@ def include_in_tools(p):
return
p
.
suffix
.
lower
()
in
{
'.py'
,
'.pyw'
,
'.txt'
}
return
p
.
suffix
.
lower
()
in
{
'.py'
,
'.pyw'
,
'.txt'
}
FULL_LAYOUT
=
[
FULL_LAYOUT
=
[
(
'/'
,
'
$build
'
,
'python.exe'
,
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'python.exe'
,
is_not_debug
),
(
'/'
,
'
$build
'
,
'pythonw.exe'
,
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'pythonw.exe'
,
is_not_debug
),
(
'/'
,
'
$build
'
,
'python{0.major}.dll'
.
format
(
sys
.
version_info
),
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'python{0.major}.dll'
.
format
(
sys
.
version_info
),
is_not_debug
),
(
'/'
,
'
$build
'
,
'python{0.major}{0.minor}.dll'
.
format
(
sys
.
version_info
),
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'python{0.major}{0.minor}.dll'
.
format
(
sys
.
version_info
),
is_not_debug
),
(
'DLLs/'
,
'
$build
'
,
'*.pyd'
,
is_not_debug
),
(
'DLLs/'
,
'
PCBuild/$arch
'
,
'*.pyd'
,
is_not_debug
),
(
'DLLs/'
,
'
$build
'
,
'*.dll'
,
is_not_debug_or_python
),
(
'DLLs/'
,
'
PCBuild/$arch
'
,
'*.dll'
,
is_not_debug_or_python
),
(
'include/'
,
'include'
,
'*.h'
,
None
),
(
'include/'
,
'include'
,
'*.h'
,
None
),
(
'include/'
,
'PC'
,
'pyconfig.h'
,
None
),
(
'include/'
,
'PC'
,
'pyconfig.h'
,
None
),
(
'Lib/'
,
'Lib'
,
'**/*'
,
include_in_lib
),
(
'Lib/'
,
'Lib'
,
'**/*'
,
include_in_lib
),
(
'libs/'
,
'
$build
'
,
'*.lib'
,
include_in_libs
),
(
'libs/'
,
'
PCBuild/$arch
'
,
'*.lib'
,
include_in_libs
),
(
'Tools/'
,
'Tools'
,
'**/*'
,
include_in_tools
),
(
'Tools/'
,
'Tools'
,
'**/*'
,
include_in_tools
),
]
]
EMBED_LAYOUT
=
[
EMBED_LAYOUT
=
[
(
'/'
,
'
$build
'
,
'python*.exe'
,
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'python*.exe'
,
is_not_debug
),
(
'/'
,
'
$build
'
,
'*.pyd'
,
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'*.pyd'
,
is_not_debug
),
(
'/'
,
'
$build
'
,
'*.dll'
,
is_not_debug
),
(
'/'
,
'
PCBuild/$arch
'
,
'*.dll'
,
is_not_debug
),
(
'python{0.major}{0.minor}.zip'
.
format
(
sys
.
version_info
),
'Lib'
,
'**/*'
,
include_in_lib
),
(
'python{0.major}{0.minor}.zip'
.
format
(
sys
.
version_info
),
'Lib'
,
'**/*'
,
include_in_lib
),
]
]
...
@@ -170,18 +170,18 @@ def rglob(root, pattern, condition):
...
@@ -170,18 +170,18 @@ def rglob(root, pattern, condition):
def
main
():
def
main
():
parser
=
argparse
.
ArgumentParser
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'-s'
,
'--source'
,
metavar
=
'dir'
,
help
=
'The directory containing the repository root'
,
type
=
Path
)
parser
.
add_argument
(
'-s'
,
'--source'
,
metavar
=
'dir'
,
help
=
'The directory containing the repository root'
,
type
=
Path
)
parser
.
add_argument
(
'-o'
,
'--out'
,
metavar
=
'file'
,
help
=
'The name of the output archive'
,
type
=
Path
,
default
=
None
)
parser
.
add_argument
(
'-o'
,
'--out'
,
metavar
=
'file'
,
help
=
'The name of the output
self-extracting
archive'
,
type
=
Path
,
default
=
None
)
parser
.
add_argument
(
'-t'
,
'--temp'
,
metavar
=
'dir'
,
help
=
'A directory to temporarily extract files into'
,
type
=
Path
,
default
=
None
)
parser
.
add_argument
(
'-t'
,
'--temp'
,
metavar
=
'dir'
,
help
=
'A directory to temporarily extract files into'
,
type
=
Path
,
default
=
None
)
parser
.
add_argument
(
'-e'
,
'--embed'
,
help
=
'Create an embedding layout'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'-e'
,
'--embed'
,
help
=
'Create an embedding layout'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'-
b'
,
'--build'
,
help
=
'Specify the build directory'
,
type
=
Path
)
parser
.
add_argument
(
'-
a'
,
'--arch'
,
help
=
'Specify the architecture to use (win32/amd64)'
,
type
=
str
,
default
=
"win32"
)
ns
=
parser
.
parse_args
()
ns
=
parser
.
parse_args
()
source
=
ns
.
source
or
(
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
.
parent
)
source
=
ns
.
source
or
(
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
.
parent
)
out
=
ns
.
out
out
=
ns
.
out
build
=
ns
.
build
arch
=
ns
.
arch
assert
isinstance
(
source
,
Path
)
assert
isinstance
(
source
,
Path
)
assert
not
out
or
isinstance
(
out
,
Path
)
assert
not
out
or
isinstance
(
out
,
Path
)
assert
isinstance
(
build
,
Path
)
assert
isinstance
(
arch
,
str
)
if
ns
.
temp
:
if
ns
.
temp
:
temp
=
ns
.
temp
temp
=
ns
.
temp
...
@@ -204,16 +204,14 @@ def main():
...
@@ -204,16 +204,14 @@ def main():
try
:
try
:
for
t
,
s
,
p
,
c
in
layout
:
for
t
,
s
,
p
,
c
in
layout
:
if
s
==
'$build'
:
s
=
source
/
s
.
replace
(
"$arch"
,
arch
)
s
=
build
else
:
s
=
source
/
s
copied
=
copy_to_layout
(
temp
/
t
.
rstrip
(
'/'
),
rglob
(
s
,
p
,
c
))
copied
=
copy_to_layout
(
temp
/
t
.
rstrip
(
'/'
),
rglob
(
s
,
p
,
c
))
print
(
'Copied {} files'
.
format
(
copied
))
print
(
'Copied {} files'
.
format
(
copied
))
with
open
(
str
(
temp
/
'sys.path'
),
'w'
)
as
f
:
if
ns
.
embed
:
print
(
'python{0.major}{0.minor}.zip'
.
format
(
sys
.
version_info
),
file
=
f
)
with
open
(
str
(
temp
/
'sys.path'
),
'w'
)
as
f
:
print
(
'.'
,
file
=
f
)
print
(
'python{0.major}{0.minor}.zip'
.
format
(
sys
.
version_info
),
file
=
f
)
print
(
'.'
,
file
=
f
)
if
out
:
if
out
:
total
=
copy_to_layout
(
out
,
rglob
(
temp
,
'**/*'
,
None
))
total
=
copy_to_layout
(
out
,
rglob
(
temp
,
'**/*'
,
None
))
...
...
Tools/nuget/make_pkg.proj
Dosyayı görüntüle @
41fca9d1
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<PropertyGroup>
<PropertyGroup>
<Nuget
Condition=
"$(Nuget) == ''"
>
$(ExternalsDir)\windows-installer\nuget\nuget.exe
</Nuget>
<Nuget
Condition=
"$(Nuget) == ''"
>
$(ExternalsDir)\windows-installer\nuget\nuget.exe
</Nuget>
<NuspecVersion>
$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)
</NuspecVersion>
<NuspecVersion>
$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)
</NuspecVersion>
<NuspecVersion
Condition=
"$(ReleaseLevelName) != ''"
>
$(NuspecVersion)-$(ReleaseLevelName)
</NuspecVersion>
<SignOutput>
false
</SignOutput>
<SignOutput>
false
</SignOutput>
<TargetName>
$(OutputName).$(NuspecVersion)
</TargetName>
<TargetName>
$(OutputName).$(NuspecVersion)
</TargetName>
<TargetExt>
.nupkg
</TargetExt>
<TargetExt>
.nupkg
</TargetExt>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment