Skip to content

Commit

Permalink
Try to fix Python build
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Nov 12, 2022
1 parent 9e305c5 commit 90f4584
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Fable.Cli/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ type ProjectCracked(cliArgs: CliArgs, crackerResponse: CrackerResponse, sourceFi
// We display "parsed" because "cracked" may not be understood by users
Log.always $"Project and references ({result.ProjectOptions.SourceFiles.Length} source files) parsed in %i{ms}ms{Log.newLine}"
Log.verbose(lazy $"""F# PROJECT: %s{cliArgs.ProjectFileAsRelativePath}
FABLE LIBRARY: {result.FableLibDir}
OUTPUT TYPE: {result.OutputType}
%s{result.ProjectOptions.OtherOptions |> String.concat $"{Log.newLine} "}
%s{result.ProjectOptions.SourceFiles |> String.concat $"{Log.newLine} "}{Log.newLine}""")

Expand Down
1 change: 0 additions & 1 deletion src/Fable.Cli/ProjectCracker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ let getFableLibraryPath (opts: CrackerOptions) =
|> File.tryFindNonEmptyDirectoryUpwards {| matches = [buildDir; "build/" + buildDir]; exclude = ["src"] |}
|> Option.defaultWith (fun () -> Fable.FableError "Cannot find fable-library" |> raise)

Log.verbose(lazy ("fable-library: " + fableLibrarySource))
let fableLibraryTarget = IO.Path.Combine(opts.FableModulesDir, libDir)
// Always overwrite fable-library in case it has been updated, see #3208
copyDir false fableLibrarySource fableLibraryTarget
Expand Down
1 change: 1 addition & 0 deletions src/fable-library-py/fable_library/Fable.Library.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
<DefineConstants>$(DefineConstants);FABLE_COMPILER</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_BIGINT</DefineConstants>
Expand Down
1 change: 1 addition & 0 deletions tests/Python/Fable.Tests.Python.fsproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
Expand Down

0 comments on commit 90f4584

Please sign in to comment.