python-msilib 0.2.0__cp314-cp314t-win32.whl → 0.3.0__cp314-cp314t-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of python-msilib might be problematic. Click here for more details.

msilib/__init__.py CHANGED
@@ -7,7 +7,7 @@ import re
7
7
  import string
8
8
  import sys
9
9
 
10
- __version__ = "0.2.0"
10
+ __version__ = "0.3.0"
11
11
 
12
12
  AMD64 = "AMD64" in sys.version
13
13
  # Keep msilib.Win64 around to preserve backwards compatibility.
msilib/_msi.c CHANGED
@@ -298,8 +298,8 @@ static PyObject* _msi_FCICreate_impl(
298
298
  return NULL;
299
299
  }
300
300
 
301
- for (i = 0; i < PyList_GET_SIZE(files); i++) {
302
- PyObject* item = PyList_GET_ITEM(files, i);
301
+ for (i = 0; i < PyList_Size(files); i++) {
302
+ PyObject* item = PyList_GetItemRef(files, i);
303
303
  char *filename, *cabname;
304
304
 
305
305
  if (!PyArg_ParseTuple(item, "ss", &filename, &cabname)) {
@@ -1282,5 +1282,8 @@ PyMODINIT_FUNC PyInit__msi(void)
1282
1282
  if (!MSIError)
1283
1283
  return NULL;
1284
1284
  PyModule_AddObject(m, "MSIError", MSIError);
1285
+ #ifdef Py_GIL_DISABLED
1286
+ PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
1287
+ #endif
1285
1288
  return m;
1286
1289
  }
Binary file
@@ -1991,7 +1991,7 @@ static inline int Py_fclose(FILE *file)
1991
1991
  #endif
1992
1992
 
1993
1993
 
1994
- #if 0x03090000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1994
+ #if 0x03080000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1995
1995
  static inline PyObject*
1996
1996
  PyConfig_Get(const char *name)
1997
1997
  {
@@ -2032,7 +2032,9 @@ PyConfig_Get(const char *name)
2032
2032
  PYTHONCAPI_COMPAT_SPEC(module_search_paths, WSTR_LIST, "path"),
2033
2033
  PYTHONCAPI_COMPAT_SPEC(optimization_level, UINT, _Py_NULL),
2034
2034
  PYTHONCAPI_COMPAT_SPEC(parser_debug, BOOL, _Py_NULL),
2035
+ #if 0x03090000 <= PY_VERSION_HEX
2035
2036
  PYTHONCAPI_COMPAT_SPEC(platlibdir, WSTR, "platlibdir"),
2037
+ #endif
2036
2038
  PYTHONCAPI_COMPAT_SPEC(prefix, WSTR_OPT, "prefix"),
2037
2039
  PYTHONCAPI_COMPAT_SPEC(pycache_prefix, WSTR_OPT, "pycache_prefix"),
2038
2040
  PYTHONCAPI_COMPAT_SPEC(quiet, BOOL, _Py_NULL),
@@ -2529,6 +2531,10 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer,
2529
2531
  return 0;
2530
2532
  }
2531
2533
 
2534
+ static inline int
2535
+ PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2536
+ Py_GCC_ATTRIBUTE((format(printf, 2, 3)));
2537
+
2532
2538
  static inline int
2533
2539
  PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2534
2540
  {
@@ -2549,6 +2555,39 @@ PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2549
2555
  #endif // PY_VERSION_HEX < 0x030F00A1
2550
2556
 
2551
2557
 
2558
+ #if PY_VERSION_HEX < 0x030F00A1
2559
+ static inline PyObject*
2560
+ PyTuple_FromArray(PyObject *const *array, Py_ssize_t size)
2561
+ {
2562
+ PyObject *tuple = PyTuple_New(size);
2563
+ if (tuple == NULL) {
2564
+ return NULL;
2565
+ }
2566
+ for (Py_ssize_t i=0; i < size; i++) {
2567
+ PyObject *item = array[i];
2568
+ PyTuple_SET_ITEM(tuple, i, Py_NewRef(item));
2569
+ }
2570
+ return tuple;
2571
+ }
2572
+ #endif
2573
+
2574
+
2575
+ #if PY_VERSION_HEX < 0x030F00A1
2576
+ static inline Py_hash_t
2577
+ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
2578
+ {
2579
+ #ifdef PYPY_VERSION
2580
+ (void)op; // unused argument
2581
+ return -1;
2582
+ #elif PY_VERSION_HEX >= 0x03000000
2583
+ return ((PyASCIIObject*)op)->hash;
2584
+ #else
2585
+ return ((PyUnicodeObject*)op)->hash;
2586
+ #endif
2587
+ }
2588
+ #endif
2589
+
2590
+
2552
2591
  #ifdef __cplusplus
2553
2592
  }
2554
2593
  #endif
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-msilib
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Read and write Microsoft Installer files
5
5
  Author-email: Marcelo Duarte <marcelotduarte@users.noreply.github.com>
6
6
  License-Expression: PSF-2.0
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.13
18
18
  Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
20
  Classifier: Topic :: Software Development :: Build Tools
20
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
22
  Classifier: Topic :: System :: Software Distribution
@@ -0,0 +1,13 @@
1
+ msilib/__init__.py,sha256=tfVCYTeiYkKCJbvx92ETwc3Zi9EiX5Fp1K-cdcHe8pw,20135
2
+ msilib/_msi.c,sha256=cP6TFig0RdogyKNHzlIcVgRO6qv28Fe__Ydng6V39Gg,38691
3
+ msilib/_msi.cp314t-win32.pyd,sha256=Etey9vyrreuQeeQL-0LwBw7qcbrKFC7eYfmpFco1wco,24576
4
+ msilib/schema.py,sha256=_qBk8geNrA5Iup92yLvv8rgbx4EUSyA0BoPxqT6Q95U,128604
5
+ msilib/sequence.py,sha256=m1Yo_u1JGuGpHydHVNJFHvvXMZ3wBU-yHWq9px6ed1I,4526
6
+ msilib/text.py,sha256=Xd4CFDmgChKgIf6qsc6IFzT4YmJYXH8TqPm1W6GOW10,11039
7
+ msilib/include/_msi.h,sha256=sPtYIxAB6HS6K3_MWHpcd639whVvTqt78Pumt77l_gI,20929
8
+ msilib/include/pythoncapi_compat.h,sha256=ntwNXFRDLa7FFJ1dVrlBRK0S_ms8aKD7t1XXoN6u4Bo,73222
9
+ python_msilib-0.3.0.dist-info/licenses/LICENSE,sha256=Wju9Q0A41nBaSfjgklLmLoONJJJSYQD8agr81R5HUnI,2584
10
+ python_msilib-0.3.0.dist-info/METADATA,sha256=xfVSfTXvFp-ey3k2kyySW2iTy5sRch7f4PCBtj-WIhk,3652
11
+ python_msilib-0.3.0.dist-info/WHEEL,sha256=QZj5mezaA5oNm6LDNW4xgYLgBYwS1DTKsN1RAjQk9mo,98
12
+ python_msilib-0.3.0.dist-info/top_level.txt,sha256=reGDwqhWKgUpH6z4VDR3W4MUnrUixkQv8pFZxMzH4Es,7
13
+ python_msilib-0.3.0.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- msilib/__init__.py,sha256=fm5yUVNBZHd4B5jMZES1GkFfJ5NYREkgn5feuRBuneM,20135
2
- msilib/_msi.c,sha256=FRB1t_4pjDRDg5r2DuzaqDgr0ymxIiqMCfWWlFtPJ1k,38606
3
- msilib/_msi.cp314t-win32.pyd,sha256=7qg26yvbdxaqH0xyS7XMKx-ACSygKX9rOs9WsFvYhCw,24064
4
- msilib/schema.py,sha256=_qBk8geNrA5Iup92yLvv8rgbx4EUSyA0BoPxqT6Q95U,128604
5
- msilib/sequence.py,sha256=m1Yo_u1JGuGpHydHVNJFHvvXMZ3wBU-yHWq9px6ed1I,4526
6
- msilib/text.py,sha256=Xd4CFDmgChKgIf6qsc6IFzT4YmJYXH8TqPm1W6GOW10,11039
7
- msilib/include/_msi.h,sha256=sPtYIxAB6HS6K3_MWHpcd639whVvTqt78Pumt77l_gI,20929
8
- msilib/include/pythoncapi_compat.h,sha256=xReZ1yVIyHzdoO05n4XKf9iNLqFfDF1WjWV2YtQdREo,72302
9
- python_msilib-0.2.0.dist-info/licenses/LICENSE,sha256=Wju9Q0A41nBaSfjgklLmLoONJJJSYQD8agr81R5HUnI,2584
10
- python_msilib-0.2.0.dist-info/METADATA,sha256=skRbJyYS-VjtCM0RixXvCiqvhCWhSrBfoaGb3i11RaE,3578
11
- python_msilib-0.2.0.dist-info/WHEEL,sha256=QZj5mezaA5oNm6LDNW4xgYLgBYwS1DTKsN1RAjQk9mo,98
12
- python_msilib-0.2.0.dist-info/top_level.txt,sha256=reGDwqhWKgUpH6z4VDR3W4MUnrUixkQv8pFZxMzH4Es,7
13
- python_msilib-0.2.0.dist-info/RECORD,,