diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index c14ffaf3da..d659bf5bdb 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -4,6 +4,7 @@ require "formula" require "formula_creator" require "missing_formula" require "cli/parser" +require "utils/pypi" module Homebrew module_function @@ -137,6 +138,8 @@ module Homebrew fc.generate! + PyPI.update_python_resources! Formula[fc.name], ignore_non_pypi_packages: true if args.python? + puts "Please run `brew audit --new-formula #{fc.name}` before submitting, thanks." exec_editor fc.path end diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 97b8b5e64b..0be15b4f88 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -134,7 +134,7 @@ module Homebrew # depends_on "cmake" => :build <% end %> - <% if mode == :perl || mode == :python %> + <% if mode == :perl %> # Additional dependency # resource "" do # url ""