Skip to content

Commit 3a56156

Browse files
Remove --only-binary when packaging for desktop platforms (#113)
* Allows source installations for desktop packaging * Bump version to 0.8.1
1 parent a4ce62b commit 3a56156

File tree

16 files changed

+51
-14
lines changed

16 files changed

+51
-14
lines changed

src/serious_python/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* Not based on Kivy!

src/serious_python/bin/package_command.dart

+6-5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class PackageCommand extends Command {
156156
}
157157

158158
bool isMobile = (platform == "iOS" || platform == "Android");
159+
bool isWeb = platform == "Pyodide";
159160

160161
var junkFileExtensions =
161162
isMobile ? junkFileExtensionsMobile : junkFileExtensionsDesktop;
@@ -295,11 +296,11 @@ class PackageCommand extends Command {
295296
stdout.writeln(
296297
"Installing $requirements with pip command to $sitePackagesDir");
297298

298-
List<String> pipArgs = [
299-
"--disable-pip-version-check",
300-
"--only-binary",
301-
":all:"
302-
];
299+
List<String> pipArgs = ["--disable-pip-version-check"];
300+
301+
if (isMobile || isWeb) {
302+
pipArgs.addAll(["--only-binary", ":all:"]);
303+
}
303304

304305
for (var index in extraPyPiIndexes) {
305306
pipArgs.addAll(["--extra-index-url", index]);
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42dd5eb20465988cd1718b497b0f086e04c5431f37bbdc5354fb5921575ddfa1
1+
067c62c8ae15e77a6935577d0a9cbc8a1b4852f7fc9c458be38d15224e992c9a

src/serious_python/pubspec.yaml

+1-1
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.0
5+
version: 0.8.1
66

77
platforms:
88
ios:

src/serious_python_android/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* New packaging, not based on Kivy and with pre-built binary packages.

src/serious_python_android/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.flet.serious_python_android'
2-
version '0.8.0'
2+
version '0.8.1'
33

44
def python_version = '3.12'
55

src/serious_python_android/pubspec.yaml

+1-1
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.0
5+
version: 0.8.1
66

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

src/serious_python_darwin/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* New packaging, not based on Kivy and with pre-built binary packages.

src/serious_python_darwin/darwin/serious_python_darwin.podspec

+1-1
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.0'
7+
s.version = '0.8.1'
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.

src/serious_python_darwin/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_darwin
22
description: iOS and macOS implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.0
5+
version: 0.8.1
66

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

src/serious_python_linux/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* New packaging, not based on Kivy and with pre-built binary packages.

src/serious_python_linux/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_linux
22
description: Linux implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.0
5+
version: 0.8.1
66

77
environment:
88
sdk: '>=3.1.3 <4.0.0'

src/serious_python_platform_interface/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* New packaging, not based on Kivy and with pre-built binary packages.

src/serious_python_platform_interface/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_platform_interface
22
description: A common platform interface for the serious_python plugin.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.0
5+
version: 0.8.1
66

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

src/serious_python_windows/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.1
2+
3+
* Remove `--only-binary` when packaging for desktop platforms ([#112](https://github.com/flet-dev/serious-python/issues/112))
4+
* Fixed: only pass string args ('script') if they are not null. ([#77](https://github.com/flet-dev/serious-python/issues/77))
5+
* Fixed: script set as empty string to fix windows build error ([#83](https://github.com/flet-dev/serious-python/issues/83))
6+
17
## 0.8.0
28

39
* New packaging, not based on Kivy and with pre-built binary packages.

src/serious_python_windows/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_windows
22
description: Windows implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.8.0
5+
version: 0.8.1
66

77
environment:
88
sdk: '>=3.1.3 <4.0.0'

0 commit comments

Comments
 (0)