Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
from os.path import exists, join | ||
from pythonforandroid.logger import info | ||
from pythonforandroid.recipe import PythonRecipe | ||
|
||
|
||
class SetuptoolsRecipe(PythonRecipe): | ||
version = '69.0.3' | ||
url = 'https://pypi.python.org/packages/source/s/setuptools/setuptools-{version}.tar.gz' | ||
call_hostpython_via_targetpython = False | ||
install_in_hostpython = True | ||
hostpython_prerequisites = ["setuptools=={}".format(version)] | ||
|
||
def should_build(self, arch): | ||
if exists(join(self.hostpython_site_dir, "setuptools")): | ||
info('Python package already exists in site-packages') | ||
return False | ||
info('setuptools apparently isn\'t already in site-packages') | ||
return True | ||
|
||
def build_arch(self, arch): | ||
self.install_hostpython_prerequisites() | ||
|
||
|
||
recipe = SetuptoolsRecipe() |