Skip to main content

AKRacer

AKRacer 主要是解决 py_mini_racer 在 64 位 ARM 操作系统中的动态链接库调用问题,主要 方案就是通过 pip install akracer 使得在对应 py_mini_racer 目录中下载相应的已经 编译好的动态链接库,目前主要包括 armlibmini_racer.dylib 和 armlibmini_racer.glibc.so 这 两个动态链接库,分别对应 Apple M 系列芯片和 Ubuntu 18.04,20.04 和 22.04 及树莓派 64 位操作系统。

安装

pip install akracer

环境变量设置

需要在本地设置 PyPI 的环境变量

  1. HATCH_INDEX_USER 为 __token__
  2. HATCH_INDEX_AUTH 为 pypi-xxxx

定制化

主要修改 akracer/py_mini_racer/py_mini_racer.py 中的 _get_lib_path 函数,使得其可以 正常调用到对应的动态链接库。

对应操作

  1. 修改版本:akracer/py_mini_racer/__init__.py 中的 __version__ 更新到新版本
  2. 删除版本:akracer/dist 删除该文件夹,以删除老版本
  3. 构建版本:hatch build
  4. 发布版本:hatch publish

注意:第一次上传需要在 hatch publish -u __token__ -a pypi-xxxx 中配置好token

动态链接库

本项目目标是解决 py_mini_racer 在 64 位操作系统中的动态链接库调用问题;

  1. py_mini_racer 在 x86 架构的操作系统中,可以直接使用 pip 安装,不需要额外的动态链接库;
  2. 其在 ARM 架构的操作系统中,需要额外的动态链接库
  3. 本次主要提供其在 Apple M 系列芯片中的动态链接库
  4. 还提供 ARM 在 Ubuntu 18.04,20.04 和 22.04 中的动态链接库
  5. 还提供其在树莓派 64 位操作系统中的动态链接库

对应一览表

  1. armlibmini_racer.dylib 对应 Apple M 系列芯片
  2. armlibmini_racer.glibc.so 对应 Ubuntu 18.04,20.04 和 22.04 及树莓派 64 位操作系统
  3. 其余则由 py_mini_racer 编译安装

项目管理

  1. Hatch
  2. Hatch 文档

Metadata

Release files for akracer 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akracer 0.0.13
File Size Uploaded
akracer-0.0.13.tar.gz 10.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for akracer 0.0.13
File Interpreter ABI Platform
akracer-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 MB

Release files / akracer-0.0.13.tar.gz

Download URL akracer-0.0.13.tar.gz
Size 10.0 MB
Tags Source
SHA-256 checksum
How to use checksums
8ab67dabda34f38604d037f2cac67078d253d8c4c316ffe0d80d27ed03cdbb5e
BLAKE2b-256 checksum
How to use checksums
b776424358add4fb060ab24c7a4d6e90c5c05cc1871cf27b6afc3f39ff5774fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Release files / akracer-0.0.13-py3-none-any.whl

Download URL akracer-0.0.13-py3-none-any.whl
Size 10.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
55bd04c69e35130994d26795f00183e0c33d4e237f7ebfa35074a760c30209d1
BLAKE2b-256 checksum
How to use checksums
15866ef05f0b51a36dbec2b260da7a93ed0096dea32e708e127c5051b875af2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Release history Release notifications | RSS feed

0.0.14

2 release files

This release

0.0.13 This release

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

1 release file

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page