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

Distribute as Flatpak #1374

Open
drschwabe opened this issue Dec 19, 2018 · 4 comments
Open

Distribute as Flatpak #1374

drschwabe opened this issue Dec 19, 2018 · 4 comments

Comments

@drschwabe
Copy link

After searching for it on flathub.org today, figured I would post here to make the suggestion/request to make Glances available as a Flatpak

@Kallb123
Copy link

This would be amazing for Steam Deck compatibility, to keep an eye on battery etc.

@nicolargo nicolargo added this to the Next releases milestone Aug 19, 2022
@nicolargo
Copy link
Owner

nicolargo commented Aug 19, 2022

Should have a look on:

Any contributor welcome to package Glances for Flathub

@nicolargo
Copy link
Owner

Give a first (failed) try here: https://github.com/nicolargo/glancesflatpak

flatpak-builder --force-clean --ccache --require-changes --repo=repo --subject="Build of python3-glances-full, `date`" build com.github.nicolargo.Glances.yml
Emptying app dir 'build'
Downloading sources
Starting build of com.github.nicolargo.glances
Cache miss, checking out last cache hit
========================================================================
Building module python3-glances in /home/nicolargo/dev/glancesflatpak/.flatpak-builder/build/python3-glances-2
========================================================================
Running: pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "glances[all]" --no-build-isolation
Using pip 23.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)
Looking in links: file:///run/build/python3-glances
Processing ./Glances-3.3.1.1-py3-none-any.whl
Processing ./psutil-5.9.5.tar.gz (from glances[all])
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info
  writing /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/dependency_links.txt
  writing requirements to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/requires.txt
  writing top-level names to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-dy9z8duq/psutil-5.9.5.dist-info'
  Preparing metadata (pyproject.toml) ... done
Processing ./defusedxml-0.7.1-py2.py3-none-any.whl (from glances[all])
Processing ./packaging-23.1-py3-none-any.whl (from glances[all])
Processing ./ujson-5.7.0.tar.gz (from glances[all])
  Running command Preparing metadata (pyproject.toml)
  /usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
    warnings.warn(msg)
  running dist_info
  creating /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info
  writing /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/dependency_links.txt
  writing top-level names to /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE.txt'
  writing manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-f053gpb1/ujson-0.0.0.dist-info'
  Preparing metadata (pyproject.toml) ... done
  WARNING: Requested ujson>=5.4.0 from file:///run/build/python3-glances/ujson-5.7.0.tar.gz (from glances[all]), but installing version 0.0.0
Discarding file:///run/build/python3-glances/ujson-5.7.0.tar.gz: Requested ujson>=5.4.0 from file:///run/build/python3-glances/ujson-5.7.0.tar.gz (from glances) has inconsistent version: expected '5.7.0', but metadata has '0.0.0'
INFO: pip is looking at multiple versions of glances[all] to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement ujson>=5.4.0; python_version >= "3.7" (from glances[all]) (from versions: 5.7.0)
ERROR: No matching distribution found for ujson>=5.4.0; python_version >= "3.7"
Error: module python3-glances: Child process exited with code 1

@nicolargo
Copy link
Owner

To be tested after the 4.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants