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
ab040647
Kaydet (Commit)
ab040647
authored
Ock 15, 2015
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 23018: Add version info to python[w].exe
üst
2587952f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
33 deletions
+107
-33
python.manifest
PC/python.manifest
+13
-0
python_exe.rc
PC/python_exe.rc
+49
-1
python_nt.rc
PC/python_nt.rc
+10
-32
python_ver_rc.h
PC/python_ver_rc.h
+35
-0
No files found.
PC/python.manifest
0 → 100644
Dosyayı görüntüle @
ab040647
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns=
"urn:schemas-microsoft-com:asm.v1"
manifestVersion=
"1.0"
>
<compatibility
xmlns=
"urn:schemas-microsoft-com:compatibility.v1"
>
<application>
<supportedOS
Id=
"{e2011457-1546-43c5-a5fe-008deee3d3f0}"
/>
<supportedOS
Id=
"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"
/>
<supportedOS
Id=
"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"
/>
<supportedOS
Id=
"{1f676c76-80e1-4239-95bb-83d0f6d0da78}"
/>
<supportedOS
Id=
"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"
/>
</application>
</compatibility>
</assembly>
\ No newline at end of file
PC/python_exe.rc
Dosyayı görüntüle @
ab040647
1 ICON DISCARDABLE "pycon.ico"
// Resource script for Python console EXEs.
#include "python_ver_rc.h"
// Include the manifest file that indicates we support all
// current versions of Windows.
#include <winuser.h>
1 RT_MANIFEST "python.manifest"
1 ICON DISCARDABLE "pycon.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION PYVERSION64
PRODUCTVERSION PYVERSION64
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
VALUE "CompanyName", PYTHON_COMPANY "\0"
VALUE "FileDescription", "Python\0"
VALUE "FileVersion", PYTHON_VERSION
VALUE "InternalName", "Python Console\0"
VALUE "LegalCopyright", PYTHON_COPYRIGHT "\0"
VALUE "OriginalFilename", "python" PYTHON_DEBUG_EXT ".exe\0"
VALUE "ProductName", "Python\0"
VALUE "ProductVersion", PYTHON_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0, 1200
END
END
PC/python_nt.rc
Dosyayı görüntüle @
ab040647
// Resource script for Python core DLL.
// Resource script for Python core DLL.
// Currently only holds version information.
//
#include "winver.h"
#define MS_WINDOWS
#include "modsupport.h"
#include "patchlevel.h"
#ifdef _DEBUG
# include "pythonnt_rc_d.h"
#else
# include "pythonnt_rc.h"
#endif
/* e.g., 3.3.0a1
#include "python_ver_rc.h"
* PY_VERSION comes from patchlevel.h
*/
#define PYTHON_VERSION PY_VERSION "\0"
/* 64-bit version number as comma-separated list of 4 16-bit ints */
// Include the manifest file that indicates we support all
#if PY_MICRO_VERSION > 64
// current versions of Windows.
# error "PY_MICRO_VERSION > 64"
#include <winuser.h>
#endif
2 RT_MANIFEST "python.manifest"
#if PY_RELEASE_LEVEL > 99
# error "PY_RELEASE_LEVEL > 99"
#endif
#if PY_RELEASE_SERIAL > 9
# error "PY_RELEASE_SERIAL > 9"
#endif
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
// String Tables
// String Tables
STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
...
@@ -45,23 +23,23 @@ VS_VERSION_INFO VERSIONINFO
...
@@ -45,23 +23,23 @@ VS_VERSION_INFO VERSIONINFO
PRODUCTVERSION PYVERSION64
PRODUCTVERSION PYVERSION64
FILEFLAGSMASK 0x3fL
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
#ifdef _DEBUG
FILEFLAGS
0x1L
FILEFLAGS
VS_FF_DEBUG
#else
#else
FILEFLAGS 0x0L
FILEFLAGS 0x0L
#endif
#endif
FILEOS
0x40004L
FILEOS
VOS__WINDOWS32
FILETYPE
0x1
L
FILETYPE
VFT_DL
L
FILESUBTYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
BEGIN
BLOCK "StringFileInfo"
BLOCK "StringFileInfo"
BEGIN
BEGIN
BLOCK "000004b0"
BLOCK "000004b0"
BEGIN
BEGIN
VALUE "CompanyName",
"Python Software Foundation
\0"
VALUE "CompanyName",
PYTHON_COMPANY "
\0"
VALUE "FileDescription", "Python Core\0"
VALUE "FileDescription", "Python Core\0"
VALUE "FileVersion", PYTHON_VERSION
VALUE "FileVersion", PYTHON_VERSION
VALUE "InternalName", "Python DLL\0"
VALUE "InternalName", "Python DLL\0"
VALUE "LegalCopyright",
"Copyright 2001-2015 Python Software Foundation. Copyright 2000 BeOpen.com. Copyright 1995-2001 CNRI. Copyright 1991-1995 SMC.
\0"
VALUE "LegalCopyright",
PYTHON_COPYRIGHT "
\0"
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
VALUE "ProductName", "Python\0"
VALUE "ProductName", "Python\0"
VALUE "ProductVersion", PYTHON_VERSION
VALUE "ProductVersion", PYTHON_VERSION
...
...
PC/python_ver_rc.h
0 → 100644
Dosyayı görüntüle @
ab040647
// Resource script for Python core DLL.
// Currently only holds version information.
//
#include "winver.h"
#define PYTHON_COMPANY "Python Software Foundation"
#define PYTHON_COPYRIGHT "Copyright 2001-2014 Python Software Foundation. Copyright 2000 BeOpen.com. Copyright 1995-2001 CNRI. Copyright 1991-1995 SMC."
#define MS_WINDOWS
#include "modsupport.h"
#include "patchlevel.h"
#ifdef _DEBUG
# include "pythonnt_rc_d.h"
# define PYTHON_DEBUG_EXT "_d"
#else
# include "pythonnt_rc.h"
# define PYTHON_DEBUG_EXT
#endif
/* e.g., 3.3.0a1
* PY_VERSION comes from patchlevel.h
*/
#define PYTHON_VERSION PY_VERSION "\0"
/* 64-bit version number as comma-separated list of 4 16-bit ints */
#if PY_MICRO_VERSION > 64
# error "PY_MICRO_VERSION > 64"
#endif
#if PY_RELEASE_LEVEL > 99
# error "PY_RELEASE_LEVEL > 99"
#endif
#if PY_RELEASE_SERIAL > 9
# error "PY_RELEASE_SERIAL > 9"
#endif
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
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