Skip to content

Fix Surprise and Python 3.7#1540

Merged
anargyri merged 3 commits intostagingfrom
andreas/python37
Sep 30, 2021
Merged

Fix Surprise and Python 3.7#1540
anargyri merged 3 commits intostagingfrom
andreas/python37

Conversation

@anargyri
Copy link
Collaborator

@anargyri anargyri commented Sep 28, 2021

Description

  • Install Surprise from tarball in setup.py. This fixes incompatibilities with certain numpy versions.
  • Tested Python 3.7 with venv and virtualenv
  • Updated dockerfile to 3.7

Related Issues

#1511

Checklist:

  • I have followed the contribution guidelines and code style for this project.
  • I have added tests covering my contributions.
  • I have updated the documentation accordingly.
  • This PR is being made to staging branch and not to main branch.

"cornac>=1.1.2,<2",
"scikit-surprise>=0.19.1,<=1.1.1",
# For Surprise, specify the tarball in order to avoid incompatibilities of compiled .pyx files with numpy versions < 1.20
"scikit-surprise@https://files.pythonhosted.org/packages/97/37/5d334adaf5ddd65da99fc65f6507e0e4599d092ba048f4302fe8775619e8/scikit-surprise-1.1.1.tar.gz",
Copy link
Contributor

@laserprec laserprec Sep 28, 2021

Choose a reason for hiding this comment

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

This is awesome solution to the problem!

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

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

LGTM

@anargyri anargyri merged commit 448982d into staging Sep 30, 2021
@miguelgfierro miguelgfierro deleted the andreas/python37 branch October 4, 2021 09:45
@laserprec laserprec mentioned this pull request Oct 7, 2021
4 tasks
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.

3 participants