Skip to content

Instantly share code, notes, and snippets.

@nils-werner
Last active December 26, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nils-werner/7079822 to your computer and use it in GitHub Desktop.
Save nils-werner/7079822 to your computer and use it in GitHub Desktop.
# Contributor: Christian Thurau <christian DOT thurau AT iais DOT fraunhofer DOT de>
pkgname='python2-pymf'
pkgver=0.1.9
pkgrel=1
pkgdesc="Python Matrix Factorization (PyMF) is a module for several constrained/unconstrained matrix factorization (and related) methods"
url="http://code.google.com/p/pymf/"
arch=('any')
license=('GPL3')
depends=('python2' 'python2-cvxopt')
source=(https://pypi.python.org/packages/source/P/PyMF/PyMF-$pkgver.tar.gz pymf-$pkgver.patch)
md5sums=('98b50af2dc12aab62976416cf4185c2b' 'f6fe10265f1238ebdfba5e4654cd6148')
build() {
cd "$srcdir/PyMF-$pkgver/"
patch -p1 -i $srcdir/pymf-$pkgver.patch
python2 setup.py build || return 1
}
package() {
cd "$srcdir/PyMF-$pkgver/"
python2 setup.py install --root=$pkgdir || return 1
}
diff -aur PyMF-0.1.9.pristine/lib/pymf/vol.py PyMF-0.1.9.new/lib/pymf/vol.py
--- PyMF-0.1.9.pristine/lib/pymf/vol.py 2011-04-28 11:28:37.000000000 +0200
+++ PyMF-0.1.9.new/lib/pymf/vol.py 2013-10-21 09:42:07.777411537 +0200
@@ -17,7 +17,7 @@
# $Source$
import numpy as np
-from scipy import factorial
+from scipy.misc.common import factorial
__all__ = ["cmdet", "simplex"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment