Skip to content

Commit

Permalink
Unbreak build with Cabal >= 2.4. (#256)
Browse files Browse the repository at this point in the history
Remove sDistHook, add autogen-modules.
  • Loading branch information
mikesperber committed Apr 12, 2020
1 parent f07c7f2 commit 739f661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions tensorflow-core-ops/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tensorflow-core-ops/tensorflow-core-ops.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down

0 comments on commit 739f661

Please sign in to comment.