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

Fix build through addon-builder. #6

Closed
wants to merge 1 commit into from

Conversation

mrstegeman
Copy link
Contributor

No description provided.

@@ -20,6 +20,9 @@ rm -rf *.tgz package SHA256SUMS lib
# Prep new package
mkdir package lib

# Make sure Cython is installed, as it's required to build numpy
pip3 install Cython
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wont harm , but for some reason I didnt need it, I am comparing my log to builder's one:

https://github.com/mozilla-iot/addon-builder/runs/657262548?check_suite_focus=true

WebThingsIO/addon-list#825

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you already had it installed?

Copy link
Owner

@rzr rzr May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no I checked there is no other cython on my py 3.7 , it's pulled by pip:

pi        1586  0.0  0.2   7676  2600 pts/2    S+   22:44   0:00                          \_ /bin/bash -e ./package.sh
pi        1595  2.2  3.4  40636 32512 pts/2    S+   22:44   0:10                              \_ /usr/bin/python3 /usr/bin/pip3 install -r requirements.txt -t lib --no-binary :all: --prefix
pi        1618  3.1  3.4  41388 33144 pts/2    S+   22:45   0:14                                  \_ /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-grru9kun --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython>=0.29.14

So I suspect a bug in pip: log says:
"You are using pip version 9.0.1, however version 20.1 is available."

raspbian:buster uses:
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

May I suggest to use "pip install --upgrade pip" instead ?

https://pip.pypa.io/en/stable/news/# 10.0.0b1 (2018-03-31) is minimal version to supports

https://www.python.org/dev/peps/pep-0518/

https://github.com/numpy/numpy/blob/master/pyproject.toml

BTW, why building for 3.5 , addon supports only current version of gateway (py 3.7) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. I'm rebuilding the toolchains with an upgraded pip.

BTW, why building for 3.5 , addon supports only current version of gateway (py 3.7) ?

The gateway doesn't enforce any particular python version requirements, so we try to support anything modern, e.g. 3.5+.

Copy link
Owner

@rzr rzr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be updated in v0.0.5

@mrstegeman mrstegeman closed this May 8, 2020
@mrstegeman mrstegeman deleted the fix-build branch May 8, 2020 22:30
rzr added a commit to CrossStream/addon-list that referenced this pull request May 8, 2020
Built on device using python 3.7 with pip 18.1

Change-Id: I7bca3477e10b4808c0c13358e553d734ab318301
Relate-to: rzr/sense-hat-webthing#3
Forwaded: WebThingsIO#825
Relate-to: rzr/sense-hat-webthing#6
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@rzr rzr mentioned this pull request May 8, 2020
mrstegeman pushed a commit to WebThingsIO/addon-list that referenced this pull request May 9, 2020
Built on device using python 3.7 with pip 18.1

Change-Id: I7bca3477e10b4808c0c13358e553d734ab318301
Relate-to: rzr/sense-hat-webthing#3
Forwaded: #825
Relate-to: rzr/sense-hat-webthing#6
Signed-off-by: Philippe Coval <rzr@users.sf.net>
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

Successfully merging this pull request may close these issues.

2 participants