Hello,
I recently tried to build a snap with my own python code but it returns the error:
ERROR: Failed to build one or more wheels
Failed to run '/home/guilherme/snappy/calc/parts/calc/install/usr/bin/python3 -m pip wheel --no-index --find-links /home/guilherme/snappy/calc/parts/calc/python-packages --wheel-dir /tmp/tmp2s7wvtue .': Exited with code 1.
this is my snapcraft.yml
name: calc
version: '0.1'
summary: a simple sum
description: >
A simple program that sum two numbers.
grade: devel
confinement: devmode
apps:
calc:
command: bin/calc
parts:
calc:
plugin: python
python-version: python3
source: /home/guilherme/snappy/calc
Does /home/guilherme/snappy/calc
contain a proper setup.py
?
this is no longer the file from the time I created this topic,
however, I wonder if I should add anything else to my setup.py
(I already managed to create the sanp I was trying to create)
from setuptools import setup
package_name = 'calculadora'
filename = package_name + '.py'
setup(
name=package_name,
version=1.0,
author='gui',
author_email='gui.ironweasel',
description='curl statistics made simple',
url='https://git.gitlab.com/gseganzerla/calcmy',
long_description="test teste teste",
py_modules=[package_name],
packages=['libraries'],
entry_points={
'console_scripts': [
'calcmy = calculadora:main'
]
},
license='License :: OSI Approved :: MIT License',
)
If it works, is pip installable, everything else is details and polish, e.g.; filename
is assigned and never used in this setup.py
.