Skip to content

Commit 8f4101d

Browse files
committed
Add pypkg_versions function to display Python library versions
1 parent ea7be5b commit 8f4101d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/FastPointQuery.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module FastPointQuery
22

33
using CondaPkg, DelimitedFiles, Downloads, Logging, PrecompileTools, PythonCall
44

5+
export pypkg_versions
6+
57
# Python packages
68
const np = PythonCall.pynew()
79
const shapely = PythonCall.pynew()
@@ -39,6 +41,18 @@ function __init__()
3941
end
4042
end
4143

44+
function pypkg_versions()
45+
println("\n=== Python Library Versions ===")
46+
println("numpy: ", np.__version__)
47+
println("shapely: ", shapely.__version__)
48+
println("open3d: ", o3d.__version__)
49+
println("trimesh: ", trimesh.__version__)
50+
println("rasterio: ", rasterio.__version__)
51+
println("splashsurf: ", pyhasattr(splashsurf, "__version__") ? splashsurf.__version__ : "N/A")
52+
println("meshio: ", meshio.__version__)
53+
println("================================\n")
54+
end
55+
4256
include(joinpath(@__DIR__, "fileio/asc.jl"))
4357
include(joinpath(@__DIR__, "fileio/geojson.jl"))
4458
include(joinpath(@__DIR__, "fileio/ply.jl"))

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ println("shapely: ", FastPointQuery.shapely.__version__)
2020
println("open3d: ", FastPointQuery.o3d.__version__)
2121
println("trimesh: ", FastPointQuery.trimesh.__version__)
2222
println("rasterio: ", FastPointQuery.rasterio.__version__)
23-
println("rasterize: ", pyhasattr(FastPointQuery.rasterize, "__version__") ? FastPointQuery.rasterize.__version__ : "N/A")
2423
println("splashsurf: ", pyhasattr(FastPointQuery.splashsurf, "__version__") ? FastPointQuery.splashsurf.__version__ : "N/A")
2524
println("meshio: ", FastPointQuery.meshio.__version__)
2625
println("================================\n")

0 commit comments

Comments
 (0)