Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.2

* Package dist `site-packages` to a zip, so publishing to App Store doesn't fail.

## 0.1.1

* Fixed issue with setting current directory on Python start.
Expand Down
2 changes: 1 addition & 1 deletion example/flask_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ packages:
path: "../.."
relative: true
source: path
version: "0.1.1"
version: "0.1.2"
sky_engine:
dependency: transitive
description: flutter
Expand Down
4 changes: 2 additions & 2 deletions example/flet_example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ PODS:
- SDWebImage/Core (5.15.8)
- sensors_plus (0.0.1):
- Flutter
- serious_python (0.1.0):
- serious_python (0.1.1):
- Flutter
- shared_preferences_foundation (0.0.1):
- Flutter
Expand Down Expand Up @@ -97,7 +97,7 @@ SPEC CHECKSUMS:
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
sensors_plus: 5717760720f7e6acd96fdbd75b7428f5ad755ec2
serious_python: 954ab1502631a446dd28e0bacdb519e8a803a1fe
serious_python: 76a8038b2e4deae2bad1daee4040d7a49e60bc4f
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
Expand Down
2 changes: 1 addition & 1 deletion example/flet_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ packages:
path: "../.."
relative: true
source: path
version: "0.1.1"
version: "0.1.2"
shake:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SeriousPythonPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SeriousPythonPlugin: NSObject, FlutterPlugin {
"\(appDir)/__pypackages__",
resourcePath,
"\(resourcePath)/lib/python3.10",
"\(resourcePath)/lib/python3.10/site-packages"
"\(resourcePath)/lib/site-packages.zip"
]

setenv("PYTHONINSPECT", "1", 1)
Expand Down
11 changes: 10 additions & 1 deletion ios/serious_python.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'serious_python'
s.version = '0.1.1'
s.version = '0.1.2'
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
s.description = <<-DESC
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
Expand Down Expand Up @@ -49,6 +49,15 @@ Pod::Spec.new do |s|

# fix import subprocess, asyncio
cp -R pod_templates/site-packages/* dist/root/python3/lib/python3.10/site-packages

# zip site-packages
pushd dist/root/python3/lib/python3.10/site-packages
zip -r ../../site-packages.zip .
popd
rm -rf dist/root/python3/lib/python3.10

# remove junk
rm -rf dist/root/python3/lib/python3.10/config-3.10-darwin
CMD

s.libraries = 'z', 'bz2', 'c++', 'sqlite3'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: serious_python
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
version: 0.1.1
version: 0.1.2

platforms:
ios:
Expand Down