portable-python 1.8.2__py3-none-any.whl → 1.8.3__py3-none-any.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.
portable_python/config.py CHANGED
@@ -230,6 +230,7 @@ class Config:
230
230
  _find_file_duplicates(seen, folder)
231
231
  duplicates = {k: v for k, v in seen.items() if len(v) > 1}
232
232
  for dupes in duplicates.values():
233
+ LOG.info("Found duplicates: %s" % runez.joined(dupes, delimiter=", "))
233
234
  dupes = sorted(dupes, key=lambda x: len(str(x)))
234
235
  if len(dupes) == 2:
235
236
  shorter, longer = dupes
@@ -190,6 +190,14 @@ class Cpython(PythonBuilder):
190
190
  if PPG.config.get_value("cpython-compile-all"):
191
191
  self.run_python("-mcompileall", "-q", self.install_folder / "lib")
192
192
 
193
+ if self.config_folder:
194
+ # When --enable-shared is specified, cpython build does not produce 'lib/libpython*.a'
195
+ # Add it if build was not configured to clean up 'self.config_folder'
196
+ actual_static = self.config_folder / f"libpython{self.version.mm}.a"
197
+ symlink_static = self.install_folder / f"lib/libpython{self.version.mm}.a"
198
+ if actual_static.exists() and not symlink_static.exists():
199
+ runez.symlink(actual_static, symlink_static)
200
+
193
201
  info_path = PPG.config.get_value("manifest", "build-info")
194
202
  if info_path:
195
203
  contents = self._represented_yaml(self.build_information())
@@ -281,6 +289,7 @@ class Cpython(PythonBuilder):
281
289
  rel_location = os.path.relpath(self.bin_python, path.parent)
282
290
  lines.append("#!/bin/sh\n")
283
291
  lines.append('"exec" "$(dirname $0)/%s" "$0" "$@"\n' % rel_location)
292
+ lines.append("# -*- coding: utf-8 -*-\n")
284
293
 
285
294
  except UnicodeError:
286
295
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: portable-python
3
- Version: 1.8.2
3
+ Version: 1.8.3
4
4
  Summary: Portable python binaries
5
5
  Home-page: https://github.com/codrsquad/portable-python
6
6
  Author: Zoran Simic
@@ -1,8 +1,8 @@
1
1
  portable_python/__init__.py,sha256=8WL6YEUL6qZzpPHDFzqyZfjE_O-tC1Ow7hfq8EE_sLg,26995
2
2
  portable_python/__main__.py,sha256=fjtkudRFxLSLTSqzkWYnQLMGRG0BRUc6GeqY201taCE,149
3
3
  portable_python/cli.py,sha256=mFWzBoR0Y3bosH1R06n2yAy1FILLCTARHpgJlXxm1bI,7537
4
- portable_python/config.py,sha256=58DFjygkKOiaJJTOUhiTiXIEjBS5OzX9kf7YQuAR2pw,12748
5
- portable_python/cpython.py,sha256=OvieVDvdGn_ChK4HIPA49Xb3ZLd18ymB2H7xvrX7qZM,13643
4
+ portable_python/config.py,sha256=XnJzH6O9tMzJDXfwbYgLChvd3Zq93CAt9CQyEbHQLws,12835
5
+ portable_python/cpython.py,sha256=-RME1M50XrlN-Ih2H0FTpeemWIsk0FrR5A3r3ybOu7E,14222
6
6
  portable_python/inspector.py,sha256=0gJEXTSS9deoUzVSwONF_GDXokT22vmXezY2AVVX0QU,21168
7
7
  portable_python/tracking.py,sha256=mvpwlrAKqP57Tz9eO31xJ-uRa47JeWZviGd3sFbVIGw,1981
8
8
  portable_python/versions.py,sha256=Qy-44-WJdzgn37D0sYuK9tK74mPZdKzOk8I7TdHMq3Q,6639
@@ -10,9 +10,9 @@ portable_python/external/__init__.py,sha256=K878cjnWrJdc2HHsrBtTlTz6Zp789Fjwe4Hn
10
10
  portable_python/external/_inspect.py,sha256=3OochwmcimwDyT-2eI7e3P2j49EA7YtHSQ-eW99V2cs,3632
11
11
  portable_python/external/tkinter.py,sha256=qktCO2XQxDirrRiOxHWkbJKbrD2qxh40xjJl0PtrYXs,3446
12
12
  portable_python/external/xcpython.py,sha256=NrtMhXmSYpd3etL1IAWapqwfRGol7SKaEAC5GccNNiM,10034
13
- portable_python-1.8.2.dist-info/LICENSE,sha256=BB27gUWIcmc-bauY_M6COCMtiy4hN2mou1RdadlbXbs,1068
14
- portable_python-1.8.2.dist-info/METADATA,sha256=phbYWnVMpGgiXLGE1tuLdS5pu9-lLi_4DsmMHeHKw8E,8374
15
- portable_python-1.8.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
16
- portable_python-1.8.2.dist-info/entry_points.txt,sha256=Zo8HR39evgAgm4e2UhenD7kkpJvEXp_VB4aIrL_3_VY,66
17
- portable_python-1.8.2.dist-info/top_level.txt,sha256=S203pfaAC8FDZvrHsCWWua_9ZfSDEDCD1w90zzYFhOU,16
18
- portable_python-1.8.2.dist-info/RECORD,,
13
+ portable_python-1.8.3.dist-info/LICENSE,sha256=BB27gUWIcmc-bauY_M6COCMtiy4hN2mou1RdadlbXbs,1068
14
+ portable_python-1.8.3.dist-info/METADATA,sha256=qWVVcQG7nio98AHvvybssuHxMo_bPckgf-SlmmpCdtA,8374
15
+ portable_python-1.8.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
16
+ portable_python-1.8.3.dist-info/entry_points.txt,sha256=Zo8HR39evgAgm4e2UhenD7kkpJvEXp_VB4aIrL_3_VY,66
17
+ portable_python-1.8.3.dist-info/top_level.txt,sha256=S203pfaAC8FDZvrHsCWWua_9ZfSDEDCD1w90zzYFhOU,16
18
+ portable_python-1.8.3.dist-info/RECORD,,