GithubHelp home page GithubHelp logo

pyrsvd's People

Watchers

 avatar  avatar

pyrsvd's Issues

Installer Does Not Understand Non-Numeric NumPy Version Numbers

What steps will reproduce the problem?
1. Install NumPy version 1.5.0rc1 or 1.5.0b2.
2. Attempt to install PyRSVD.
3. PyRSVD installer dies with a ValueError stack trace.  

What is the expected output? What do you see instead?
Expected PyRSVD install.  Got a crash with stack trace.  Problem near line 45 
in rsvd.__init__.py.

What version of the product are you using? On what operating system?
PyRSVD 0.1 and NumPy 1.5.0rc1 on Ubuntu Linux 10.04.

Original issue reported on code.google.com by [email protected] on 27 Aug 2010 at 4:26

virtualenv build

The attached patch fixes 2 issues:
1) it was not possible to install pyrsvd in a virtualenv as it was
always looking for numpy include files in the global python include path
- now it will try finding it in the virtualenv first
2) when the numpy package was missing a really bad and long error
information was displayed by the C compiler - now it will complain about
missing numpy

Pasting it inline as I had problems attaching a file:

Index: setup.py
===================================================================
--- setup.py    (revision 27)
+++ setup.py    (working copy)
@@ -1,9 +1,17 @@

 from distutils.core import setup
 from distutils.extension import Extension
+import os.path
+
+import numpy
+numpy_path = os.path.join(numpy.__path__[0], 'core', 'include')
+
 setup(
    name = "rsvd",
-    ext_modules = [Extension("rsvd/rsvd", ["rsvd/rsvd.c"])],
+    ext_modules = [Extension("rsvd/rsvd", ["rsvd/rsvd.c"],
+                             include_dirs=[numpy_path],
+                             ),
+                  ],
    version = "0.1",
    description="A regularized SVD solver for partial matrices",
    author='Peter Prettenhofer',

==================
I tested in on a 64bit Linux box - both on few virtualenvs and on my
system Python

Original issue reported on code.google.com by wojciech.malinowski on 30 Jun 2009 at 8:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.