[ITK-users] [ITK] About the distribution of wrapped python for ITK external modules

Pablo Hernández pablo.hernandez.cerdan at outlook.com
Mon Aug 7 19:06:58 EDT 2017


Hello Francois,

thanks for testing it. In case you miss something, there are still a few classes not wrapped, will try to add them next weekend.

Pablo

On Tue, Aug 8, 2017 at 1:07 AM, francois.budin at kitware.com<mailto:francois.budin at kitware.com> <francois.budin at kitware.com<mailto:francois.budin at kitware.com>> wrote:
Hello Pablo,

It's great to hear that you were able to generate the Python wheels for your package. I was able to install it with the following command:

pip install itk-isotropicwavelets

It's great to have an really easy access to this module.
Thanks for generating the pacakge.
Francois

On Sun, Aug 6, 2017 at 6:07 AM, Pablo Hernández <pablo.hernandez.cerdan at outlook.com<mailto:pablo.hernandez.cerdan at outlook.com>> wrote:
Thanks Brad, it helped a lot.
I copied the CI files (travis, appveyor and circle) and the setup.py from the ITKModuleTemplate, changed just a little bit on setup.py, and it works! I have the .wheel files for all the platforms.

Just a few notes, I had to add a 3.6 in the .travis.yml --which generates the wheels for macOS because I was hitting the time limit (~50min).

`./macpython-download-cache-and-build-module-wheels.sh 3.6`

Also, to upload it into pypi for using `pip install`, I have registered myself in pypi and testpypi, configured a `.pypirc` file with my credentials and downloaded the wheels from every site into a `dist` folder, then:

`twine upload ./dist/* -r testpypi`

And it works!

(python-test-virtual_environment) pip install --extra-index-url https://testpypi.python.org/pypi itk-isotropicwavelets

Amazing, thanks a lot,

Cheers,
Pablo

On Fri, Aug 4, 2017 at 12:48 AM, blowekamp at mail.nih.gov<mailto:blowekamp at mail.nih.gov> <blowekamp at mail.nih.gov<mailto:blowekamp at mail.nih.gov>> wrote:
I would also look at the ITKModuleTemplate repository:
https://github.com/InsightSoftwareConsortium/ITKModuleTemplate

Brad

From: Pablo Hernández <pablo.hernandez.cerdan at outlook.com<mailto:pablo.hernandez.cerdan at outlook.com>>
Date: Thursday, August 3, 2017 at 8:28 AM
To: Beatriz Paniagua <beatriz.paniagua at kitware.com<mailto:beatriz.paniagua at kitware.com>>
Cc: "insight-users at itk.org<mailto:insight-users at itk.org>" <insight-users at itk.org<mailto:insight-users at itk.org>>
Subject: Re: [ITK-users] [ITK] About the distribution of wrapped python for ITK external modules

Hi Bea,

that's awesome, I will try to copy the configuration from the repo of your publication: https://github.com/InsightSoftwareConsortium/ITKTextureFeatures
Thanks,
Pablo

On Fri, Aug 4, 2017 at 12:00 AM, Beatriz Paniagua <beatriz.paniagua at kitware.com<mailto:beatriz.paniagua at kitware.com>> wrote:
Hi Pablo,

We have created external module specific python wraps for some applications. One example is the work that Matt M and JB Vimort did in the ITKTextureFilters.
http://review.source.kitware.com/#/c/22531/
Hope that helps!
Best,
Bea


On Wed, Aug 2, 2017 at 11:07 PM, Pablo Hernández <pablo.hernandez.cerdan at outlook.com<mailto:pablo.hernandez.cerdan at outlook.com>> wrote:
Hi there,
It seems that the only way to install an external module is to build the ITK source with the option -DModule_xxx:BOOL=ON, but I was thinking... if the module is optional in the ITK source code and provides python wraps, is it available in the python itk package with `pip install itk`?

In other words, do you wrap all the optional external modules when distributing the python itk or only the default modules? If the latter, would it be possible to create optional python packages for External Modules with the same deploying pipeline you use?

Cheers,
Pablo

_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users

_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/mailman/listinfo/community



--
Beatriz Paniagua, PhD
Technical Leader
Kitware, Inc.



_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170807/1cceb839/attachment.html>


More information about the Insight-users mailing list