kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.75k stars 503 forks source link

buildozer master cannot work from within venv / bootstrap ios-deploy fails because of nested virtualenv when trying to install pure-Python dependencies. #1807

Open cederom opened 6 months ago

cederom commented 6 months ago

Versions

Description

Logs

(venv) buildozer ios update
# Ensure build layout
# Create directory /Users/XXX/.buildozer
# Create directory /Users/XXX/.buildozer/applibs
# Create directory /Users/XXX/.buildozer/ios/platform
# Create directory /Users/XXX/.buildozer/ios/app
# Check configuration tokens
# Run 'security find-identity -v -p codesigning' ...
# Cwd None
  1) XXX
  2) XXX
  3) XXX
     3 valid identities found
# Preparing build
# Check requirements for ios
# Search for Xcode xcodebuild
#  -> found at /usr/bin/xcodebuild
# Search for Xcode xcode-select
#  -> found at /usr/bin/xcode-select
# Search for Git git
#  -> found at /opt/homebrew/bin/git
# Search for Cython cython
#  -> found at /Users/XXX/venv/bin/cython
# Search for pkg-config
#  -> found at /opt/homebrew/bin/pkg-config
# Search for autoconf
#  -> found at /opt/homebrew/bin/autoconf
# Search for automake
#  -> found at /opt/homebrew/bin/automake
# Search for libtool
#  -> found at /usr/bin/libtool
# Check availability of a iPhone SDK
# Run 'xcodebuild -showsdks' ...
# Cwd None
DriverKit SDKs:
        DriverKit 23.5                  -sdk driverkit23.5

iOS SDKs:
        iOS 17.5                        -sdk iphoneos17.5

iOS Simulator SDKs:
        Simulator - iOS 17.5            -sdk iphonesimulator17.5

macOS SDKs:
        macOS 14.5                      -sdk macosx14.5
        macOS 14.5                      -sdk macosx14.5

tvOS SDKs:
        tvOS 17.5                       -sdk appletvos17.5

tvOS Simulator SDKs:
        Simulator - tvOS 17.5           -sdk appletvsimulator17.5

visionOS SDKs:
        visionOS 1.2                    -sdk xros1.2

visionOS Simulator SDKs:
        Simulator - visionOS 1.2        -sdk xrsimulator1.2

watchOS SDKs:
        watchOS 10.5                    -sdk watchos10.5

watchOS Simulator SDKs:
        Simulator - watchOS 10.5        -sdk watchsimulator10.5

#  -> found '17.5'
# Check Xcode path
# Run 'xcode-select -print-path' ...
# Cwd None
/Applications/Xcode.app/Contents/Developer
#  -> found /Applications/Xcode.app/Contents/Developer

# Install platform
# Run 'git clone --branch v2024.03.17 https://github.com/kivy/kivy-ios.git' ...
# Cwd /Users/XXX/.buildozer/ios/platform
Cloning into 'kivy-ios'...
Note: switching to 'd02948e13c86e7fde8d48cfa4719fd34a7c298a3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

# Run 'git clone --branch 1.12.2 https://github.com/phonegap/ios-deploy' ...
# Cwd /Users/XXX/.buildozer/ios/platform
Cloning into 'ios-deploy'...
Note: switching to 'ed7de7792d28a5110242748649047a95c95ea917'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

# Check application requirements
# Run '/Users/XXX/venv/bin/python toolchain.py recipes --compact' ...
# Cwd /Users/XXX/.buildozer/ios/platform/kivy-ios
audiostream click curly cymunk ffmpeg ffpyplayer flask freetype hostopenssl hostpython3 ios itsdangerous jinja2 kivent_core kivy kiwisolver libcurl libffi libjpeg libpng libzbar markupsafe materialyoucolor matplotlib netifaces numpy openssl photolibrary pillow plyer py3dns pycrypto pykka pyobjus python3 pyyaml sdl2 sdl2_image sdl2_mixer sdl2_ttf werkzeug zbarlight
# virtualenv is needed to install pure-Python modules, but
# virtualenv does not support nesting, and you are running
# buildozer in one. Please run buildozer outside of a
# virtualenv instead.