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

Pablo Hernández <[email protected]>
Newsgroups gmane.comp.lib.itk.user
Message-ID <DB6PR03MB3125A789E32AA9A50228A76AD6B50@DB6PR03MB3125.eurprd03.prod.outlook.com>
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, [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>> 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, [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> wrote:
I would also look at the ITKModuleTemplate repository:
https://github.com/InsightSoftwareConsortium/ITKModuleTemplate

Brad

From: Pablo Hernández <[email protected]<mailto:[email protected]>>
Date: Thursday, August 3, 2017 at 8:28 AM
To: Beatriz Paniagua <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
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 <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
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

_____________________________________
Powered by 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.