joe-jordan / pyvoro

2D and 3D Voronoi tessellations: a python entry point for the voro++ library
Other
100 stars 26 forks source link

Reduce memory requirements. #21

Open loudove opened 3 years ago

loudove commented 3 years ago

Add pyro.compute3d voronoi method: reduce memory requirements, allow points exclusion from the calculation, and specify the properties to be retrieved for each cell.

The calculation is performed in a slightly different way so that the properties of each cell are retrieved right after its identification and not at the end of the tessellation.

carlosal1015 commented 11 months ago

Looks like is not working with python-3.11.3 @loudove

[pyvoro]$ python setup.py build_ext --inplace
/usr/lib/python3.11/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'description-file' will not be supported in future
        versions. Please use the underscore name 'description_file' instead.

        By 2023-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
running build_ext
building 'pyvoro.voroplusplus' extension
creating build
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/pyvoro
creating build/temp.linux-x86_64-cpython-311/src
gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -Isrc -I/usr/include/python3.11 -c pyvoro/voroplusplus.cpp -o build/temp.linux-x86_64-cpython-311/pyvoro/voroplusplus.o
pyvoro/voroplusplus.cpp:6148:12: fatal error: longintrepr.h: No such file or directory
 6148 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/sbin/gcc' failed with exit code 1

Related with https://github.com/aio-libs/aiohttp/issues/6600