Skip to content

Commit

Permalink
Additional Makefile replacement.
Browse files Browse the repository at this point in the history
  • Loading branch information
cube2222 committed Feb 18, 2021
1 parent 7c1768a commit 6ab260f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ build_python:: install_plugins tfgen # build the python sdk
fi
if [[ "${OS}" == "Darwin" ]]; then \
sed -i '' -r "s/import pulumi$$/import pulumi as pulumilib/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i '' -r "s/pulumi.CustomResource/pulumilib.CustomResource/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i '' -r "s/pulumi.ResourceOptions/pulumilib.ResourceOptions/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i '' -r "s/pulumi.Input/pulumilib.Input/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i '' -r "s/pulumi.Output/pulumilib.Output/g" sdk/python/bin/pulumi_spacelift/stack.py && \
Expand All @@ -94,6 +95,7 @@ build_python:: install_plugins tfgen # build the python sdk
fi
if [[ "${OS}" != "Darwin" ]]; then \
sed -i -r "s/import pulumi$$/import pulumi as pulumilib/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i -r "s/pulumi.CustomResource/pulumilib.CustomResource/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i -r "s/pulumi.ResourceOptions/pulumilib.ResourceOptions/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i -r "s/pulumi.Input/pulumilib.Input/g" sdk/python/bin/pulumi_spacelift/stack.py && \
sed -i -r "s/pulumi.Output/pulumilib.Output/g" sdk/python/bin/pulumi_spacelift/stack.py && \
Expand Down

0 comments on commit 6ab260f

Please sign in to comment.