Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proposed feature-request] Lacking psutil recipe #2707

Closed
yves-surrel opened this issue Nov 21, 2022 · 4 comments
Closed

[proposed feature-request] Lacking psutil recipe #2707

yves-surrel opened this issue Nov 21, 2022 · 4 comments

Comments

@yves-surrel
Copy link

Versions

  • Python: 3.9
  • OS: MacOS 11.7
  • Kivy: 2.1.0
  • Cython:
  • OpenJDK:

Description

A recipe for psutil used to exist (see #157 , May 27, 2014). The simplest one I tried to create:

from pythonforandroid.recipe import PythonRecipe


class PsutilRecipe(PythonRecipe):
    version = "5.9.3"
    url = f'https://github.com/giampaolo/psutil/archive/refs/tags/release-{version}.tar.gz'
    depends = ["setuptools"]
    site_packages_name = 'psutil'
    call_hostpython_via_targetpython = False


recipe = PsutilRecipe()

and I have no knowledge of how to amend it (no skill about gcc compiling, linking etc.)

@yves-surrel yves-surrel changed the title Lacking psutil recipe [proposed feature-request] Lacking psutil recipe Nov 21, 2022
@RobertFlatt
Copy link
Contributor

Android is not POSIX compliant.

I think the interesting question about psutil is how much of it's functionality would be available from within an Android app?

@yves-surrel
Copy link
Author

It is possible to have an operative psutil in Pydroid3, so it could be possible to have psutil compiled properly...?

@yves-surrel
Copy link
Author

Actually, in my App, psutil was required by ipykernel. I specified ipykernel==5.5.5 in buildozer.spec which does not require psutil. So for my purpose, the problem is solved. But it may be useful to others, although @RobertFlatt answer is quite relevant.

@Julian-O
Copy link
Contributor

No-one currently needs a recipe and it is unclear that it would be useful anyway. Closing as Not Planned.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants