CGAL / cgal-swig-bindings

CGAL bindings using SWIG
Other
346 stars 93 forks source link

add a setup.py file #162

Closed maxGimeno closed 4 years ago

maxGimeno commented 4 years ago

Add a setup.py file in the CGAL bindings, and change the CI to upload a python package for python 3.6/7/8 fir macOS, windows and linux, on test Pypi

lrineau commented 4 years ago

After commit https://github.com/CGAL/cgal-swig-bindings/pull/162/commits/208278168c91912a1a3ea8ce88fef774784735ab, the following command does not install to the right path:

> CGAL_DIR=$HOME/Git/cgal-5.0.x /bin/python3 setup.py install -v --user
[...]
> cat build/install_manifest.txt 
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/__init__.py
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Kernel_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Kernel.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Kernel.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Triangulation_3_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Triangulation_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Triangulation_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Triangulation_2_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Triangulation_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Triangulation_2.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Polyhedron_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Polyhedron_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Alpha_shape_2_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Alpha_shape_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Alpha_shape_2.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Spatial_searching.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Spatial_searching.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_AABB_tree_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_AABB_tree.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_AABB_tree.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Surface_mesher_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Surface_mesher.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Surface_mesher.so
/home/lrineau/.local/lib/python3.7/site-packages/lib/libCGAL_Mesh_3_cpp.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Mesh_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Mesh_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Mesh_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Mesh_2.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Interpolation.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Interpolation.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Convex_hull_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Convex_hull_2.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Convex_hull_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Convex_hull_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Voronoi_diagram_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Voronoi_diagram_2.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_HalfedgeDS.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_HalfedgeDS.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Point_set_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Point_set_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Point_set_processing_3.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Point_set_processing_3.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Shape_detection.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Shape_detection.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Classification.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Classification.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Box_intersection_d.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Box_intersection_d.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Advancing_front_surface_reconstruction.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Advancing_front_surface_reconstruction.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Polygon_mesh_processing.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Polygon_mesh_processing.so
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/CGAL_Polyline_simplification_2.py
/home/lrineau/.local/lib/python3.7/site-packages/lib64/python3.7/site-packages/CGAL/_CGAL_Polyline_simplification_2.so%                                                                                                               

All those paths are wrong: it seems the prefix is /home/lrineau/.local/lib/python3.7/site-packages, whereas it should be /home/lrineau/.local.

lrineau commented 4 years ago

Something's strange: the Travis job has not started.

maxGimeno commented 4 years ago

I have my own results from my repo.