You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/serious_python/README.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,15 @@ To simplify the packaging of your Python app Serious Python provides a CLI which
81
81
dart run serious_python:main
82
82
```
83
83
84
-
There is `package` command which takes a directory with Python app as the first argument. The command must be run in Flutter app root directory, where `pubspec.yaml` is located. The path could be either relative or an absolute:
84
+
There is `package` command which takes a directory with Python app as the first argument. The command must be run in Flutter app root directory, where `pubspec.yaml` is located. The path could be either relative or an absolute.
85
+
86
+
To package Python files for a mobile app run:
87
+
88
+
```
89
+
dart run serious_python:main package app/src --mobile
90
+
```
91
+
92
+
To package for a desktop app run:
85
93
86
94
```
87
95
dart run serious_python:main package app/src
@@ -295,10 +303,20 @@ List libraries and their versions in `requirements.txt` in the root of your Pyth
295
303
296
304
List libraries and their versions in `requirements.txt` in the root of your Python app directory.
297
305
306
+
## Troubleshooting
307
+
308
+
### Detailed logging
309
+
310
+
Use `--verbose` flag to enabled detailed logging:
311
+
312
+
```
313
+
dart run serious_python:main package app/src --mobile --verbose
314
+
```
315
+
298
316
## Examples
299
317
300
-
[Python REPL with Flask backend](example/flask_example).
318
+
[Python REPL with Flask backend](src/serious_python/example/flask_example).
0 commit comments