Skip to content

Commit

Permalink
Make --no-setup-py the default
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Oct 24, 2021
1 parent b6816e6 commit 334d137
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,14 @@ def main(argv=None):

def gen_setup_py():
if not (args.setup_py or args.no_setup_py):
log.info("Adding generated setup.py to sdist by default.")
log.info("Not generating setup.py in sdist (default changed)")
log.info(
"This will change in a future version. Pass --[no-]setup-py to "
"control it."
"Recent versions of pip no longer need this generated file"
)
return True
log.info(
"Use --[no-]setup-py to suppress this message or add setup.py"
)
return False
return args.setup_py

if args.subcmd == 'build':
Expand Down

0 comments on commit 334d137

Please sign in to comment.