Skip to content

Commit 808f5d1

Browse files
committed
continue
1 parent 9c3d6a6 commit 808f5d1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,15 @@ PDFIUM_PLATFORM="sourcebuild" python -m pip install -v .
183183
> [!TIP]
184184
> By default, the build scripts will create separate DLLs for vendored dependency libraries (e.g. `abseil`). However, if you want to bundle everything into a single DLL, pass `--single-lib`.
185185
186+
> [!NOTE]
187+
> The native sourcebuild currently supports Linux, or Linux-like platforms.
188+
> macOS and Windows are not handled, as we do not have access to these systems, and working over CI did not turn out feasible.
189+
> You need to use the toolchained build on these platforms for now.
190+
> Community help / pull requests to extend platform support would be appreciated.
191+
186192
##### cibuildwheel
187193

188-
The native sourcebuild can be run through cibuildwheel. For platforms configured in our [`pyproject.toml`](./pyproject.toml), the basic invocation is as simple as p.ex.
194+
The native sourcebuild can be run through cibuildwheel. For targets configured in our [`pyproject.toml`](./pyproject.toml), the basic invocation is as simple as p.ex.
189195
```bash
190196
CIBW_BUILD="cp311-manylinux_x86_64" cibuildwheel
191197
```
@@ -1011,7 +1017,7 @@ find . -name '*.pdf' -exec bash -c "echo \"{}\" && pypdfium2 toc \"{}\"" \;
10111017

10121018
### Adding a new workflow
10131019

1014-
When creating a new workflow, it is usually desirable to test in a branch first before merging into main.
1020+
When writing a new workflow, it is usually desirable to test in a branch first before merging into main.
10151021
However, new workflows from branches cannot be dispatched from the GitHub Actions panel yet. That's why you'll want to use the [`gh`](https://cli.github.com/) command-line tool, as follows:
10161022
```bash
10171023
gh workflow run $WORKFLOW_NAME.yaml --ref $MY_BRANCH
@@ -1020,7 +1026,7 @@ If inputs are needed, JSON can be used
10201026
```bash
10211027
echo '{"my_json_info":1, "my_var":"hello"}' | gh workflow run $WORKFLOW_NAME.yaml --ref $MY_BRANCH --json
10221028
# real-world example
1023-
echo '{"cibw_py_ver":"cp38", "linux_main":"true", "linux_ibm":"false", "linux_emulated":"false", "linux_musl":"true", "macos":"false"}' | gh workflow run cibuildwheel.yaml --ref cibuildwheel --json
1029+
echo '{"cibw_py_ver":"cp38", "linux_main":"true", "linux_ibm":"false", "linux_emulated":"false", "linux_musl":"true"}' | gh workflow run cibuildwheel.yaml --ref cibuildwheel --json
10241030
```
10251031
You should pass the complete set of fields here, defaults might not be recognized with this form of dispatch.
10261032

setupsrc/pypdfium2_setup/build_native.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def test(build_dir):
277277
def _get_clang_ver(clang_path):
278278
from packaging.version import Version
279279
output = run_cmd([str(clang_path/"bin"/"clang"), "--version"], capture=True, cwd=None)
280-
log(output) # XXX debug
280+
log(output)
281281
version = re.search(r"version ([\d\.]+)", output).group(1)
282282
version = Version(version).major
283283
log(f"Determined clang version {version!r}")

setupsrc/pypdfium2_setup/emplace.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import argparse
99
import traceback
1010
from pathlib import Path
11-
from ast import literal_eval
1211
sys.path.insert(0, str(Path(__file__).parents[1]))
1312

1413
from pypdfium2_setup.base import *

0 commit comments

Comments
 (0)