# Packaging Paraview superbuild with custom python packages

**URL:** https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043
**Category:** ParaView Support
**Tags:** python
**Created:** [December 20, 2022, 10:53am UTC](https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043 "2022-12-20T10:53:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jjw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jjw](https://discourse.paraview.org/u/jjw)
#### Post date: [December 20, 2022, 10:53am UTC](https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043/1 "2022-12-20T10:53:18Z")

</div>

Hi all,

I’m currently trying to build a paraview distribution package that includes some python modules, e.g. pydicom, nutils. How should I configure the cmake?

I followed the instructions on [gitlab page](https://gitlab.kitware.com/paraview/paraview-superbuild), but it seems it only support certain python packages. I tried ENABLE\_xxx (in my case for example ENABLE\_nutils) in the camke configuration, it didn’t work.

---

<div class="post-metadata">

### Author: ![jjw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jjw](https://discourse.paraview.org/u/jjw)
#### Post date: [January 17, 2023, 11:18pm UTC](https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043/2 "2023-01-17T23:18:58Z")

</div>

@mwestphal @ben.boeckel Could anyone share some lights on this? Huge thanks.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 18, 2023, 10:04am UTC](https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043/3 "2023-01-18T10:04:42Z")

</div>

Hi @jjw

You need to fork/submodule the superbuild in order to introduce your own python projects so they can be packaged.

Hth,

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 1:46am UTC](https://discourse.paraview.org/t/packaging-paraview-superbuild-with-custom-python-packages/11043/4 "2023-04-24T01:46:51Z")

</div>

Python packages that get packaged are listed in `paraview.bundle.common.cmake`. You’ll need to add your module/package to that list along with the project name that provides it.

```plaintext
check_for_python_module(superbuild_project_name python_package_name)

```
