Skip to content

Commit 8cb71ce

Browse files
Remove PYTHONOPTIMIZE=2 to make CFFI work (#121)
* Remove PYTHONOPTIMIZE=2 to make CFFI work * Version bump to 0.8.3 * Trying to fix Test on Linux ARM64 * Fix auto-restart * sudo sed * Run all tests
1 parent 6c492f0 commit 8cb71ce

File tree

19 files changed

+36
-15
lines changed

19 files changed

+36
-15
lines changed

.appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ for:
180180

181181
install:
182182
# Flutter SDK
183-
- sudo apt update --allow-releaseinfo-change
183+
- sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
184+
- sudo apt update -y --allow-releaseinfo-change
184185
- sudo apt install -y clang ninja-build xvfb libgtk-3-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
185186
- git clone https://github.com/flutter/flutter.git -b stable "$HOME/flutter"
186187
- export PATH="$PATH:$HOME/flutter/bin"
@@ -235,7 +236,7 @@ for:
235236
dart pub publish --force
236237
cd $APPVEYOR_BUILD_FOLDER
237238
238-
sleep 300
239+
sleep 600
239240
240241
cd src/serious_python_android
241242
dart pub publish --force
@@ -253,7 +254,7 @@ for:
253254
dart pub publish --force
254255
cd $APPVEYOR_BUILD_FOLDER
255256
256-
sleep 300
257+
sleep 600
257258
258259
cd src/serious_python
259260
dart pub publish --force || exit 1

src/serious_python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.3
2+
3+
* Remove `PYTHONOPTIMIZE=2` to make CFFI work.
4+
15
## 0.8.2
26

37
* Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`.

src/serious_python/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python
22
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.2
5+
version: 0.8.3
66

77
platforms:
88
ios:

src/serious_python_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.3
2+
3+
* Remove `PYTHONOPTIMIZE=2` to make CFFI work.
4+
15
## 0.8.2
26

37
* Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`.

src/serious_python_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.flet.serious_python_android'
2-
version '0.8.2'
2+
version '0.8.3'
33

44
def python_version = '3.12'
55

src/serious_python_android/lib/serious_python_android.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class SeriousPythonAndroid extends SeriousPythonPlatform {
7070
}
7171

7272
setenv("PYTHONINSPECT", "1");
73-
setenv("PYTHONOPTIMIZE", "2");
7473
setenv("PYTHONDONTWRITEBYTECODE", "1");
7574
setenv("PYTHONNOUSERSITE", "1");
7675
setenv("PYTHONUNBUFFERED", "1");

src/serious_python_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_android
22
description: Android implementation of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.2
5+
version: 0.8.3
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_darwin/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.3
2+
3+
* Remove `PYTHONOPTIMIZE=2` to make CFFI work.
4+
15
## 0.8.2
26

37
* Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`.

src/serious_python_darwin/darwin/Classes/SeriousPythonPlugin.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public class SeriousPythonPlugin: NSObject, FlutterPlugin {
5454
]
5555

5656
setenv("PYTHONINSPECT", "1", 1)
57-
setenv("PYTHONOPTIMIZE", "2", 1)
5857
setenv("PYTHONDONTWRITEBYTECODE", "1", 1)
5958
setenv("PYTHONNOUSERSITE", "1", 1)
6059
setenv("PYTHONUNBUFFERED", "1", 1)

src/serious_python_darwin/darwin/serious_python_darwin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'serious_python_darwin'
7-
s.version = '0.8.2'
7+
s.version = '0.8.3'
88
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
99
s.description = <<-DESC
1010
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.

0 commit comments

Comments
 (0)