silx-kit / pyFAI

Fast Azimuthal Integration in Python
Other
104 stars 94 forks source link

anaconda installation support? #277

Open chrisvam opened 8 years ago

chrisvam commented 8 years ago

Hi,

Have you considered making pyFAI available through anaconda? Is it something that I should consider doing, if I can find the time? Thanks for any thoughts...

chris

chrisvam commented 8 years ago

Sorry, I just noticed that there is this:

https://anaconda.org/ericdill/pyfai

I'm guessing that's the same as your code. If so, apologies for the noise...

kif commented 8 years ago

On Wed, 01 Jun 2016 18:43:45 -0700 chrisvam notifications@github.com wrote:

Sorry, I just noticed that there is this:

https://anaconda.org/ericdill/pyfai

I'm guessing that's the same as your code. If so, apologies for the noise...

No problem,

It is great anaconda users provide their own build system as we don't use anaconda at ESRF. If it can be documented in the official documentation, it would be great !

We are preparing a new release for the coming days ... can you tell me how to install pyFAI from anaconda ?

Jérôme Kieffer tel +33 476 882 445

jonwright commented 8 years ago

Hi Jerome, Darren

To create conda packages for similar things then Darren Dale's conda recipe for fabio is here:

https://github.com/ddale/hedm-conda-recipes/tree/master/fabio

It seems Darren also did packages for pymca, but I don't know where the build scripts are:

https://anaconda.org/praxes/pymca

I guess that one for pyFAI would just need tweaks in the yaml file. Docs are here:

http://conda.pydata.org/docs/build_tutorials.html

There is an anaconda install for python27 in /data/id11/jon/anaconda which has pyFAI in it - I think I installed it with the usual "python setup.py install" and so I didn't look into the dependencies questions. If there is a expert who can help (Darren?) then I guess it could be fast to make a package for pyFAI... otherwise figuring it all out could take a while.

All the best,

Jon

On 02/06/2016 17:02, Jerome Kieffer wrote:

On Wed, 01 Jun 2016 18:43:45 -0700 chrisvam notifications@github.com wrote:

Sorry, I just noticed that there is this:

https://anaconda.org/ericdill/pyfai

I'm guessing that's the same as your code. If so, apologies for the noise...

No problem,

It is great anaconda users provide their own build system as we don't use anaconda at ESRF. If it can be documented in the official documentation, it would be great !

We are preparing a new release for the coming days ... can you tell me how to install pyFAI from anaconda ?

There is only the linux-64 build in that repo, from the link it says "To install this package with conda run: |conda install -c ericdill pyfai=v0.11.0.post20|

Jérôme Kieffer tel +33 476 882 445

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kif/pyFAI/issues/277#issuecomment-223319682, or mute the thread https://github.com/notifications/unsubscribe/AAmk2kyvGSFPGa4CWHwv6PBgOuOf8aYQks5qHvCTgaJpZM4IsIQU.

jonwright commented 8 years ago

Hi Jon, Jerome,

You can find the pymca conda recipe in the main repository at https://github.com/vasole/pymca.

I think I found Eric Dill’s conda recipe for pyFAI at https://github.com/ericdill/conda-prescriptions/tree/master/recipes/pyFAI/dev. I suggest making a conda.recipe directory next to your setup.py file, and copying the meta.yaml, build.sh and bld.bat files into conda.recipe. To build a conda package, make sure you have conda-build installed (“conda install conda-build”) and then from your main directory do “conda build conda.recipe”. That checks out the version of your repo you specify in meta.yaml, it creates a temporary build environment and installs any packages listed in meta.yaml as build prerequisites, uses that environment to build the package by executing the build.sh or bld.bat file depending on your platform. For pyFAI, it is probably just running $PYTHON setup.py install (conda creates a $PYTHON environment variable so you pick up the python executable from the build environment).

In my opinion, Anaconda and the Conda package manager are the best things to happen to Python since Python.

Darren

From: Jonathan WRIGHT Organization: ESRF Date: Thursday, June 2, 2016 at 1:06 PM To: "reply@reply.github.commailto:reply@reply.github.com", Jerome Kieffer, Darren Dale Subject: Re: [kif/pyFAI] anaconda installation support? (#277)

Hi Jerome, Darren

To create conda packages for similar things then Darren Dale's conda recipe for fabio is here:

https://github.com/ddale/hedm-conda-recipes/tree/master/fabio

It seems Darren also did packages for pymca, but I don't know where the build scripts are:

https://anaconda.org/praxes/pymca

I guess that one for pyFAI would just need tweaks in the yaml file. Docs are here:

http://conda.pydata.org/docs/build_tutorials.html

There is an anaconda install for python27 in /data/id11/jon/anaconda which has pyFAI in it - I think I installed it with the usual "python setup.py install" and so I didn't look into the dependencies questions. If there is a expert who can help (Darren?) then I guess it could be fast to make a package for pyFAI... otherwise figuring it all out could take a while.

All the best,

Jon

On 02/06/2016 17:02, Jerome Kieffer wrote: On Wed, 01 Jun 2016 18:43:45 -0700 chrisvam notifications@github.commailto:notifications@github.com wrote:

Sorry, I just noticed that there is this:

https://anaconda.org/ericdill/pyfai

I'm guessing that's the same as your code. If so, apologies for the noise...

No problem,

It is great anaconda users provide their own build system as we don't use anaconda at ESRF. If it can be documented in the official documentation, it would be great !

We are preparing a new release for the coming days ... can you tell me how to install pyFAI from anaconda ?

There is only the linux-64 build in that repo, from the link it says "To install this package with conda run: conda install -c ericdill pyfai=v0.11.0.post20

Jérôme Kieffer tel +33 476 882 445

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/kif/pyFAI/issues/277#issuecomment-223319682, or mute the threadhttps://github.com/notifications/unsubscribe/AAmk2kyvGSFPGa4CWHwv6PBgOuOf8aYQks5qHvCTgaJpZM4IsIQU.