added missing build packages for snap

This commit is contained in:
Adnan Hodzic 2020-08-05 23:29:19 +02:00
parent ec6be50dde
commit 34e8a17f0a
2 changed files with 7 additions and 3 deletions

View File

@ -22,7 +22,7 @@ setup(
install_requires=read('requirements.txt'),
include_package_data=True,
zip_safe=True,
licence='GPLv3',
license='GPLv3',
keywords='linux cpu speed power frequency turbo optimzier auto cpufreq',
classifiers=[
'Development Status :: 5 - Production/Stable',
@ -32,4 +32,4 @@ setup(
'Natural Language :: English'
],
scripts=['bin/auto-cpufreq']
)
)

View File

@ -15,6 +15,10 @@ parts:
auto-cpufreq:
plugin: python
python-version: python3
build-packages:
- gcc
- python3-dev
- python3-wheel
source: .
deploy-cpufrectl:
@ -34,7 +38,7 @@ apps:
LC_ALL: C.UTF-8
LANG: C.UTF-8
PKG_MARKER: SNAP
service:
command: bin/auto-cpufreq --daemon 2>&1 | tee -a $SNAP_DATA/auto-cpufreq.log
plugs: