From 07716eb4b03f666b2d14a1cc6a4237f7b47fba0e Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 30 May 2023 23:47:59 +0800 Subject: [PATCH 1/2] unix-ffi/os-path: Add unix-ffi version of `os-path` package. This package reuses the code from the python-stdlib version of `os-path` but requires the unix-ffi version of `os`. This also updates `glob` to require this version of `os-path`. Signed-off-by: Jeffery To --- unix-ffi/glob/manifest.py | 2 +- unix-ffi/os-path/manifest.py | 6 ++++++ unix-ffi/os/os/__init__.py | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 unix-ffi/os-path/manifest.py diff --git a/unix-ffi/glob/manifest.py b/unix-ffi/glob/manifest.py index 622289bca..64f5233c5 100644 --- a/unix-ffi/glob/manifest.py +++ b/unix-ffi/glob/manifest.py @@ -1,7 +1,7 @@ metadata(version="0.5.2") require("os", unix_ffi=True) -require("os-path") +require("os-path", unix_ffi=True) require("re", unix_ffi=True) require("fnmatch") diff --git a/unix-ffi/os-path/manifest.py b/unix-ffi/os-path/manifest.py new file mode 100644 index 000000000..5390333dc --- /dev/null +++ b/unix-ffi/os-path/manifest.py @@ -0,0 +1,6 @@ +metadata(version="0.1.4") + +# Originally written by Paul Sokolovsky. + +require("os", unix_ffi=True) +package("os", base_path="../../python-stdlib/os-path") diff --git a/unix-ffi/os/os/__init__.py b/unix-ffi/os/os/__init__.py index 3cca078f9..54fdc246a 100644 --- a/unix-ffi/os/os/__init__.py +++ b/unix-ffi/os/os/__init__.py @@ -5,6 +5,12 @@ import ffilib import uos +# Provide optional dependencies (which may be installed separately). +try: + from . import path +except ImportError: + pass + R_OK = const(4) W_OK = const(2) X_OK = const(1) From ae96ec10a612f9b314f06f9f885a701520020025 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Wed, 31 May 2023 00:00:11 +0800 Subject: [PATCH 2/2] unix-ffi/uu: Add unix-ffi version of `uu` package. This package reuses the code from the python-stdlib version of `uu` but requires the unix-ffi version of `os-path`. This also updates `email.message` to require this version of `uu`. Signed-off-by: Jeffery To --- unix-ffi/email.message/manifest.py | 2 +- unix-ffi/uu/manifest.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 unix-ffi/uu/manifest.py diff --git a/unix-ffi/email.message/manifest.py b/unix-ffi/email.message/manifest.py index 7b75ee7ac..7814dfe4b 100644 --- a/unix-ffi/email.message/manifest.py +++ b/unix-ffi/email.message/manifest.py @@ -1,7 +1,7 @@ metadata(version="0.5.3") require("re", unix_ffi=True) -require("uu") +require("uu", unix_ffi=True) require("base64") require("binascii") require("email.utils", unix_ffi=True) diff --git a/unix-ffi/uu/manifest.py b/unix-ffi/uu/manifest.py new file mode 100644 index 000000000..f2213418f --- /dev/null +++ b/unix-ffi/uu/manifest.py @@ -0,0 +1,6 @@ +metadata(version="0.5.1") + +require("binascii") +require("os-path", unix_ffi=True) + +module("uu.py", base_path="../../python-stdlib/uu") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy