[Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Petro
Hi list
This is a general python question but I will ask it here. To
install a new numpy on Debian testing I remove installed version with
aptitude purge python-numpy download numpy source code and install
numpy with sudo python setup.py install.  If I want to remove the installed
numpy how do I proceed?
Thanks.
Petro



___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Licensing question

2012-08-06 Thread Sturla Molden
But the Fortran FFTPACK is GPL, or has the licence been changed?

http://people.sc.fsu.edu/~jburkardt/f77_src/fftpack5.1/fftpack5.1.html

Sturla

Sendt fra min iPad

Den 3. aug. 2012 kl. 07:52 skrev Travis Oliphant tra...@continuum.io:

 This should be completely fine.The fftpack.h file indicates that fftpack 
 code came from Tela originally anyway and was translated from the Fortran 
 code FFTPACK. 
 
 Good luck with your project. 
 
 -Travis
 
 
 On Aug 2, 2012, at 3:44 PM, Damon McDougall wrote:
 
 Hi,
 
 I have a question about the licence for NumPy's codebase. I am currently
 writing a library and I'd like to release under some BSD-type licence.
 Unfortunately, my choice to link against MIT's FFTW library (released
 under the GPL) means that, in its current state, this is not possible.
 I'm an avid NumPy user and thought to myself that, since NumPy's licence
 is BSD, I'd be able to use some of the source code (with due credit, of
 course) instead of FFTW. Is this possible? I mean, can I redistribute
 *PART* of NumPy's codebase? Namely, the fftpack.c file? I was under the
 impression that I could only redistribute BSD source code as a whole and
 then I read the licence more carefully and it states that I can modify
 the source to suit my needs. I consider 'redistributing a single file
 and ignoring the other files' as a 'modification' under the BSD
 definition, but maybe I'm thinking too wishfully here.
 
 Any information on this matter would be greatly appreciated since I am a
 total code licence noob.
 
 Thank you.
 
 P.S. Yes, I know I could just release under the GPL, but I don't want to
 turn people off of packaging my work into a useful product licensed
 under BSD, or even make money from it.
 
 -- 
 Damon McDougall
 http://damon-is-a-geek.com
 B2.39
 Mathematics Institute
 University of Warwick
 Coventry
 West Midlands
 CV4 7AL
 United Kingdom
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion
 
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Scott Sinclair
On 6 August 2012 11:04, Petro x.pi...@gmail.com wrote:
 This is a general python question but I will ask it here. To
 install a new numpy on Debian testing I remove installed version with
 aptitude purge python-numpy download numpy source code and install
 numpy with sudo python setup.py install.  If I want to remove the installed
 numpy how do I proceed?

Assuming your system Python is 2.7, your numpy should have been
installed in /usr/local/lib/python2.7/site-packages/ (or
/usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)

So something along these lines:

$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
$ sudo rm -rf /usr/local/bin/f2py

Cheers,
Scott
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Alex Clark
On 8/6/12 5:48 AM, Scott Sinclair wrote:
 On 6 August 2012 11:04, Petro x.pi...@gmail.com wrote:
 This is a general python question but I will ask it here. To
 install a new numpy on Debian testing I remove installed version with
 aptitude purge python-numpy download numpy source code and install
 numpy with sudo python setup.py install.  If I want to remove the installed
 numpy how do I proceed?

 Assuming your system Python is 2.7, your numpy should have been
 installed in /usr/local/lib/python2.7/site-packages/ (or
 /usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)

 So something along these lines:

 $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
 $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
 $ sudo rm -rf /usr/local/bin/f2py


Or if you have pip installed (easy_install pip) you can:

$ pip uninstall numpy

(it will uninstall things it hasn't installed, which I think should 
include the console_script f2py?)


Alex



 Cheers,
 Scott



-- 
Alex Clark ยท http://pythonpackages.com/ONE_CLICK

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Licensing question

2012-08-06 Thread Robert Kern
Those are not the original Fortran sources. The original Fortran sources
are in the public domain as work done by a US federal employee.

http://www.netlib.org/fftpack/

Never trust the license of any code on John Burkardt's site. Track it down
to the original sources.

On Monday, August 6, 2012, Sturla Molden wrote:

 But the Fortran FFTPACK is GPL, or has the licence been changed?

 http://people.sc.fsu.edu/~jburkardt/f77_src/fftpack5.1/fftpack5.1.html

 Sturla

 Sendt fra min iPad

 Den 3. aug. 2012 kl. 07:52 skrev Travis Oliphant 
 tra...@continuum.iojavascript:;
 :

  This should be completely fine.The fftpack.h file indicates that
 fftpack code came from Tela originally anyway and was translated from the
 Fortran code FFTPACK.
 
  Good luck with your project.
 
  -Travis
 
 
  On Aug 2, 2012, at 3:44 PM, Damon McDougall wrote:
 
  Hi,
 
  I have a question about the licence for NumPy's codebase. I am currently
  writing a library and I'd like to release under some BSD-type licence.
  Unfortunately, my choice to link against MIT's FFTW library (released
  under the GPL) means that, in its current state, this is not possible.
  I'm an avid NumPy user and thought to myself that, since NumPy's licence
  is BSD, I'd be able to use some of the source code (with due credit, of
  course) instead of FFTW. Is this possible? I mean, can I redistribute
  *PART* of NumPy's codebase? Namely, the fftpack.c file? I was under the
  impression that I could only redistribute BSD source code as a whole and
  then I read the licence more carefully and it states that I can modify
  the source to suit my needs. I consider 'redistributing a single file
  and ignoring the other files' as a 'modification' under the BSD
  definition, but maybe I'm thinking too wishfully here.
 
  Any information on this matter would be greatly appreciated since I am a
  total code licence noob.
 
  Thank you.
 
  P.S. Yes, I know I could just release under the GPL, but I don't want to
  turn people off of packaging my work into a useful product licensed
  under BSD, or even make money from it.
 
  --
  Damon McDougall
  http://damon-is-a-geek.com
  B2.39
  Mathematics Institute
  University of Warwick
  Coventry
  West Midlands
  CV4 7AL
  United Kingdom
  ___
  NumPy-Discussion mailing list
  NumPy-Discussion@scipy.org javascript:;
  http://mail.scipy.org/mailman/listinfo/numpy-discussion
 
  ___
  NumPy-Discussion mailing list
  NumPy-Discussion@scipy.org javascript:;
  http://mail.scipy.org/mailman/listinfo/numpy-discussion
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org javascript:;
 http://mail.scipy.org/mailman/listinfo/numpy-discussion



-- 
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] question about scipy superpack

2012-08-06 Thread Tom Krauss
Hi,

I got a new job, and a new mac book pro on which I just installed Mac OS X
10.8.

I need to run SWIG to generate a shared object from C++ source that works
with numpy.i.  I'm considering installing the Scipy Superpack, but I have a
question.  If I install the Scipy Superpack, which has most of the packages
I need, plus some others, will it be able to find numpy/arrayobject.h or
do I need to install numpy source and build it myself?In other words,
does numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg have
the source files needed by gcc to compile the swig-generated C++ wrapper?

Cheers,
  Tom
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion