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

Python 3.6 build using yum #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Python 3.6 build using yum #16

wants to merge 1 commit into from

Conversation

markcampanelli
Copy link

@markcampanelli markcampanelli commented Oct 9, 2017

Here's a version that builds with Python 3.6 using latest numpy, scipy, and sklearn.

This build procedure doesn't make use of any virtual environments, and it has (all?) the .pyc files in the pycache directories. I remove all the documentation and test files, but to be safe I decided to leave in the .py source files (~2 MB extra). Resulting lambda-package.zip file is ~38.5 MB.

Outstanding question: It seems that numpy and scipy use atlas as the default and that's it. Thus, is it really necessary to yum install blas-devel and lapack-devel?

I tested this using one of my own lambda functions with Python 3.6, but without including sklearn, which I do not use.

I'm happy to remove the uncompressed lambda-package and update the README if this PR is going to be merged into master.

@markcampanelli markcampanelli changed the title Python 3.6 build Python 3.6 build using yum Oct 9, 2017
echo "Yum installing non-pip packages...done" > /dev/null 2>&1

echo "Pip installing packages using local compilation for numpy and scipy..." > /dev/null 2>&1
/usr/bin/pip-${PYTHON_VER} install --upgrade pip setuptools

Choose a reason for hiding this comment

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

produced an error later in the script as pip 18.1 was installed but numpy and scipy installation looked for 9.0.3 ??

worked when this line was commented out

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