Skip to content

Commit

Permalink
Wizard recipe: boostpython-v1.76.0 (JuliaPackaging#3982)
Browse files Browse the repository at this point in the history
* New Recipe: boostpython v1.76.0

* Clean up libboost_python recipe

* Apply suggestions from code review

Co-authored-by: Mosè Giordano <[email protected]>

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
2 people authored and simeonschaub committed Feb 23, 2022
1 parent a74db08 commit 9c9322a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions B/boostpython/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "boostpython"
version = v"1.76.0"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/boostorg/python.git", "68fa9dccdec75d59ac28d3ff98d70c659e12326d")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/python
c++ -fPIC -o $libdir/libboost_python.$dlext -O3 -shared -L$libdir -lpython3.8 -I$includedir -I$includedir/python3.8 $(find src ! -path src/numpy/\* -name \*.cpp)
cp -r include/* $includedir
install_license LICENSE_1_0.txt
"""

# No Windows support in Python_jll currently
platforms = filter(!Sys.iswindows, supported_platforms())
platforms = expand_cxxstring_abis(platforms)

# The products that we will ensure are always built
products = [
LibraryProduct("libboost_python", :libboost_python)
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="boost_jll", uuid="28df3c45-c428-5900-9ff8-a3135698ca75"); compat="=1.76.0")
Dependency(PackageSpec(name="Python_jll"))
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

0 comments on commit 9c9322a

Please sign in to comment.