packages feed

libtorch-ffi 2.0.1.7 → 2.0.1.8

raw patch · 2 files changed

+14/−4 lines, 2 filessetup-changedPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Setup.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ import Data.List (isPrefixOf) import Distribution.Simple import Distribution.Simple.Program@@ -21,6 +23,14 @@ import Control.Exception import Codec.Archive.Zip +#if MIN_VERSION_Cabal(3,14,0)+import Distribution.Utils.Path (makeSymbolicPath)+#else++makeSymbolicPath :: a -> a+makeSymbolicPath = id+#endif+ main :: IO () main = defaultMainWithHooks $ simpleUserHooks   { preConf = \_ _ -> do@@ -41,10 +51,10 @@               includeDir = libtorchDir </> "include"            let updatedFlags = flags-                { configExtraLibDirs      = libDir : configExtraLibDirs flags+                { configExtraLibDirs      = makeSymbolicPath libDir : configExtraLibDirs flags                 , configExtraIncludeDirs  =-                    includeDir-                    : (includeDir </> "torch" </> "csrc" </> "api" </> "include")+                    makeSymbolicPath includeDir+                    : makeSymbolicPath (includeDir </> "torch" </> "csrc" </> "api" </> "include")                     : configExtraIncludeDirs flags                 }           -- Call the default configuration hook with updated flags
libtorch-ffi.cabal view
@@ -1,6 +1,6 @@ cabal-version:       3.0 name:                libtorch-ffi-version:             2.0.1.7+version:             2.0.1.8 -- The prefix(2.0) of this version("2.0.0.0") is the same as libtorch's one. synopsis:            Haskell bindings for PyTorch description:         This package provides Haskell bindings to libtorch, the C++ library underlying PyTorch, specifically designed for the Hasktorch ecosystem.