mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 03:19:44 +01:00
Unbreak build with Cabal >= 2.4. (#256)
Remove sDistHook, add autogen-modules.
This commit is contained in:
parent
f07c7f237a
commit
739f6618f4
2 changed files with 2 additions and 6 deletions
|
@ -50,11 +50,6 @@ generatingOpsWrappers = hooks
|
|||
, haddockHook = \p l h f -> generateSources l >> haddockHook hooks p l h f
|
||||
, replHook = \p l h f args -> generateSources l
|
||||
>> replHook hooks p l h f args
|
||||
, sDistHook = \p maybe_l h f -> case maybe_l of
|
||||
Nothing -> error "Can't run sdist; run 'cabal configure first."
|
||||
Just l -> do
|
||||
generateSources l
|
||||
sDistHook hooks (fudgePackageDesc l p) maybe_l h f
|
||||
}
|
||||
where
|
||||
flagsBuilder dir = OpGenFlags
|
||||
|
|
|
@ -10,10 +10,11 @@ maintainer: tensorflow-haskell@googlegroups.com
|
|||
copyright: Google Inc.
|
||||
category: Machine Learning
|
||||
build-type: Custom
|
||||
cabal-version: >=1.24
|
||||
cabal-version: >=2.0
|
||||
|
||||
library
|
||||
exposed-modules: TensorFlow.GenOps.Core
|
||||
autogen-modules: TensorFlow.GenOps.Core
|
||||
build-depends: bytestring
|
||||
, proto-lens >= 0.4.0 && < 0.6.0
|
||||
, tensorflow == 0.2.*
|
||||
|
|
Loading…
Reference in a new issue