Skip to content

Commit

Permalink
Merge pull request #95 from sarayourfriend/pip-options
Browse files Browse the repository at this point in the history
Allow configuration of pip options
  • Loading branch information
mhsmith authored Nov 19, 2024
2 parents 7521a4a + 01e32f2 commit 9b4788a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions {{ cookiecutter.format }}/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ android {

python {
version "{{ cookiecutter.python_version|py_tag }}"

pip {
install "-r", "requirements.txt"

def f = new File(project.projectDir, "pip-options.txt")
def pipOptions = f.getText("utf-8").split("\n")
pipOptions = pipOptions.findAll { !it.isBlank() }
options(*pipOptions)
}
{%- if cookiecutter.extract_packages %}
extractPackages {{ cookiecutter.extract_packages }}
Expand Down
Empty file.
1 change: 1 addition & 0 deletions {{ cookiecutter.format }}/briefcase.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ target_version = "0.3.15"
[paths]
app_path = "app/src/main/python"
app_requirements_path = "app/requirements.txt"
app_requirement_installer_args_path = "app/pip-options.txt"
metadata_resource_path = "app/src/main/res/values/briefcase.xml"

icon.round.48 = "app/src/main/res/mipmap-mdpi/ic_launcher_round.png"
Expand Down

0 comments on commit 9b4788a

Please sign in to comment.