| 1 |
# Frequently Asked Questions |
| 2 |
|
| 3 |
## What versions of Python are supported? |
| 4 |
|
| 5 |
Python 3.10 or higher. |
| 6 |
|
| 7 |
## What platforms does Briefcase support? |
| 8 |
|
| 9 |
Briefcase currently has support for: |
| 10 |
|
| 11 |
- macOS (producing DMG files, or raw .app files) |
| 12 |
- Linux (producing system packages, AppImage files or Flatpaks) |
| 13 |
- Windows (producing MSI installers) |
| 14 |
- iOS (producing Xcode projects) |
| 15 |
- Android (producing Gradle projects) |
| 16 |
|
| 17 |
Support for other some other operating systems (e.g., tvOS, watchOS, WearOS, and the web) are on our road map. |
| 18 |
|
| 19 |
Briefcase's platform support is built on a [plugin system][platform-interface], so if you want to add support for a custom platform, you can do so; or, you can contribute the backend to Briefcase itself. |
| 20 |
|
| 21 |
## How do I detect if my app is running in a Briefcase-packaged container? |
| 22 |
|
| 23 |
Briefcase adds a [PEP566](https://peps.python.org/pep-0566/) metadata file when it installs your app's code. The metadata can be retrieved at runtime as described in the [Accessing Briefcase packaging metadata at runtime][access-packaging-metadata] how-to. You can determine if your app was packaged with Briefcase by testing for the existence of the `Briefcase-Version` tag: |
| 24 |
|
| 25 |
```python |
| 26 |
in_briefcase = 'Briefcase-Version' in metadata |
| 27 |
``` |
| 28 |
|
| 29 |
## Can I use third-party Python packages in my app? |
| 30 |
|
| 31 |
Yes! Briefcase uses `pip` to install third-party packages into your app bundle. As long as the package is available on PyPI, or you can provide a wheel file for the package, it can be added to the [`requires`][] declaration in your `pyproject.toml` file and used by your app at runtime. |
| 32 |
|
| 33 |
If the package is pure-Python (i.e., it does not contain a binary library), that's all you need to do. |
| 34 |
|
| 35 |
If the package contains a binary component, you'll need to ensure that a binary wheel is available for the platform you're targeting: |
| 36 |
|
| 37 |
- **macOS, Linux, Windows**: Binary wheels are hosted on [PyPI](https://pypi.org). |
| 38 |
- **Android**: See the [Android platform documentation][android-third-party-packages]. |
| 39 |
- **iOS**: See the [iOS platform documentation][ios-third-party-packages]. |
| 40 |
- **Web**: Binary wheel support is currently limited to [those provided by the Pyodide project](https://pyodide.org/en/stable/usage/packages-in-pyodide.html). |