0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

Added conda recipe and anaconda.org build script #32

Closed melund closed 8 years ago

melund commented 8 years ago

This adds a conda build recipe. Conda packages makes it very easy to install the packages in python a distributions that have conda. It also adds a build-script to build packages on Anaconda.org. This makes it a 'one-click' procedure to build conda packages for all platforms.

I have already made some conda packages for smp1d and its dependencies. They can be installed from my channel (melund) with the following command.

C:\Users\mel>conda install --channel melund spm1d
Fetching package metadata: ........
Solving package specifications: ..................
Package plan for installation in environment C:\Users\mel\Anaconda3\envs\py2:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    libtiff-4.0.6              |            vc9_1         464 KB
    setuptools-18.5            |           py27_0         648 KB
    cycler-0.9.0               |           py27_0           6 KB
    matplotlib-1.5.0           |      np110py27_0         6.1 MB
    rft1d-0.1.11               |           py27_2         142 KB
    spm1d-0.3.1.4              |           py27_1         3.6 MB
    ------------------------------------------------------------
                                           Total:        10.9 MB

The following NEW packages will be INSTALLED:

    cycler:     0.9.0-py27_0
    rft1d:      0.1.11-py27_2
    spm1d:      0.3.1.4-py27_1

The following packages will be UPDATED:

    libtiff:    4.0.6-vc9_0       [vc9] --> 4.0.6-vc9_1       [vc9]
    matplotlib: 1.4.3-np110py27_3 --> 1.5.0-np110py27_0
    setuptools: 18.4-py27_0       --> 18.5-py27_0

Proceed ([y]/n)? y

Fetching packages ...
libtiff-4.0.6- 100% |###############################| Time: 0:00:01 357.27 kB/s
setuptools-18. 100% |###############################| Time: 0:00:01 532.06 kB/s
cycler-0.9.0-p 100% |###############################| Time: 0:00:00 319.88 kB/s
matplotlib-1.5 100% |###############################| Time: 0:00:02   2.72 MB/s
rft1d-0.1.11-p 100% |###############################| Time: 0:00:00 190.56 kB/s
spm1d-0.3.1.4- 100% |###############################| Time: 0:00:02   1.81 MB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%

C:\Users\mel>python
Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Nov  7 2015, 13:18:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import spm1d
>>>
melund commented 8 years ago

This is included https://github.com/0todd0000/spm1d/pull/35