Skip to content

Commit 92abb16

Browse files
committed
Fix PyOxidizer config
There were 2 problems: - pyyaml cannot be included It has been removed from requirements.txt and pip install is called with the --no-deps option, which installs everything else. pyyaml is not required anyway - indygreg/PyOxidizer#307 which is solved by using the python_config.run_filename option instead of python_config.run_module
1 parent d669232 commit 92abb16

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

pyoxidizer.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ def make_exe(dist):
180180
# python_config.run_command = "<code>"
181181

182182
# Run a Python module as __main__ when the interpreter starts.
183-
python_config.run_module = "cloudflare_dyndns"
183+
# python_config.run_module = "cloudflare_dyndns"
184184

185185
# Run a Python file when the interpreter starts.
186-
# python_config.run_filename = "/path/to/file"
186+
python_config.run_filename = "cloudflare_dyndns.py"
187187

188188
# Produce a PythonExecutable from a Python distribution, embedded
189189
# resources, and other options. The returned object represents the
@@ -234,7 +234,7 @@ def make_exe(dist):
234234

235235
# Invoke `pip install` using a requirements file and add the collected resources
236236
# to our binary.
237-
exe.add_python_resources(exe.pip_install(["-r", "requirements.txt"]))
237+
exe.add_python_resources(exe.pip_install(["--no-deps", "-r", "requirements.txt"]))
238238

239239
# Read Python files from a local directory and add them to our embedded
240240
# context, taking just the resources belonging to the Python packages.

requirements.txt

-30
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,6 @@ idna==2.10; python_version >= "2.7" and python_full_version < "3.0.0" or python_
1919
jsonlines==2.0.0; python_version >= "3.6" \
2020
--hash=sha256:bfb043d4e25fd894dca67b1f2adf014e493cb65d0f18b3a74a98bfcd97c3d983 \
2121
--hash=sha256:6fdd03104c9a421a1ba587a121aaac743bf02d8f87fa9cdaa3b852249a241fe8
22-
pyyaml==5.4.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" \
23-
--hash=sha256:3b2b1824fe7112845700f815ff6a489360226a5609b96ec2190a45e62a9fc922 \
24-
--hash=sha256:129def1b7c1bf22faffd67b8f3724645203b79d8f4cc81f674654d9902cb4393 \
25-
--hash=sha256:4465124ef1b18d9ace298060f4eccc64b0850899ac4ac53294547536533800c8 \
26-
--hash=sha256:bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185 \
27-
--hash=sha256:6c78645d400265a062508ae399b60b8c167bf003db364ecb26dcab2bda048253 \
28-
--hash=sha256:4e0583d24c881e14342eaf4ec5fbc97f934b999a6828693a99157fde912540cc \
29-
--hash=sha256:72a01f726a9c7851ca9bfad6fd09ca4e090a023c00945ea05ba1638c09dc3347 \
30-
--hash=sha256:895f61ef02e8fed38159bb70f7e100e00f471eae2bc838cd0f4ebb21e28f8541 \
31-
--hash=sha256:3bd0e463264cf257d1ffd2e40223b197271046d09dadf73a0fe82b9c1fc385a5 \
32-
--hash=sha256:e4fac90784481d221a8e4b1162afa7c47ed953be40d31ab4629ae917510051df \
33-
--hash=sha256:5accb17103e43963b80e6f837831f38d314a0495500067cb25afab2e8d7a4018 \
34-
--hash=sha256:e1d4970ea66be07ae37a3c2e48b5ec63f7ba6804bdddfdbd3cfd954d25a82e63 \
35-
--hash=sha256:cb333c16912324fd5f769fff6bc5de372e9e7a202247b48870bc251ed40239aa \
36-
--hash=sha256:fe69978f3f768926cfa37b867e3843918e012cf83f680806599ddce33c2c68b0 \
37-
--hash=sha256:dd5de0646207f053eb0d6c74ae45ba98c3395a571a2891858e87df7c9b9bd51b \
38-
--hash=sha256:08682f6b72c722394747bddaf0aa62277e02557c0fd1c42cb853016a38f8dedf \
39-
--hash=sha256:d2d9808ea7b4af864f35ea216be506ecec180628aced0704e34aca0b040ffe46 \
40-
--hash=sha256:8c1be557ee92a20f184922c7b6424e8ab6691788e6d86137c5d93c1a6ec1b8fb \
41-
--hash=sha256:fd7f6999a8070df521b6384004ef42833b9bd62cfee11a09bda1079b4b704247 \
42-
--hash=sha256:bfb51918d4ff3d77c1c856a9699f8492c612cde32fd3bcd344af9be34999bfdc \
43-
--hash=sha256:fa5ae20527d8e831e8230cbffd9f8fe952815b2b7dae6ffec25318803a7528fc \
44-
--hash=sha256:0f5f5786c0e09baddcd8b4b45f20a7b5d61a7e7e99846e3c799b05c7c53fa696 \
45-
--hash=sha256:294db365efa064d00b8d1ef65d8ea2c3426ac366c0c4368d930bf1c5fb497f77 \
46-
--hash=sha256:74c1485f7707cf707a7aef42ef6322b8f97921bd89be2ab6317fd782c2d53183 \
47-
--hash=sha256:d483ad4e639292c90170eb6f7783ad19490e7a8defb3e46f97dfe4bacae89122 \
48-
--hash=sha256:fdc842473cd33f45ff6bce46aea678a54e3d21f1b61a7750ce3c498eedfe25d6 \
49-
--hash=sha256:49d4cdd9065b9b6e206d0595fee27a96b5dd22618e7520c33204a4a3239d5b10 \
50-
--hash=sha256:c20cfa2d49991c8b4147af39859b167664f2ad4561704ee74c1de03318e898db \
51-
--hash=sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e
5222
requests==2.25.1; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0") \
5323
--hash=sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e \
5424
--hash=sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804

0 commit comments

Comments
 (0)