@@ -274,14 +274,15 @@ def main(test=False):
274274 # parser.add_argument( "--unregister_forall", action="store_true", help="un-Register distribution for all users")
275275 parser .add_argument ("--fix" , action = "store_true" , help = "make WinPython fix" )
276276 parser .add_argument ("--movable" , action = "store_true" , help = "make WinPython movable" )
277- parser .add_argument ("-ws" , dest = "wheelsource" , default = None , type = str , help = "location to search wheels: wppm pylock.toml -ws source_of_wheels" )
278- parser .add_argument ("-wd" , dest = "wheeldrain" , default = None , type = str , help = "location of found wheels: wppm pylock.toml -wd destination_of_wheels" )
279- parser .add_argument ("-ls" , "--list" , action = "store_true" , help = "list installed packages matching the given [optional] package expression: wppm -ls, wppm -ls pand" )
280- parser .add_argument ("-lsa" , dest = "all" , action = "store_true" ,help = f"list details of package names matching given regular expression: wppm -lsa pandas -l1" )
281- parser .add_argument ("-p" ,dest = "pipdown" ,action = "store_true" ,help = "show Package dependencies of the given package[option]: wppm -p pandas[test]" )
282- parser .add_argument ("-r" , dest = "pipup" , action = "store_true" , help = f"show Reverse dependancies of the given package[option]: wppm -r pytest[test]" )
283- parser .add_argument ("-l" , "--levels" , type = int , default = 2 , help = "show 'LEVELS' levels of dependencies (with -p, -r), default is 2: wppm -p pandas -l1" )
284- parser .add_argument ("-t" , "--target" , default = sys .prefix , help = f'path to target Python distribution (default: "{ sys .prefix } ")' )
277+ parser .add_argument ("-ws" , dest = "wheelsource" , default = None , type = str , help = "wheels location, '.' = WheelHouse): wppm pylock.toml -ws source_of_wheels, wppm -ls -ws ." )
278+ parser .add_argument ("-wd" , dest = "wheeldrain" , default = None , type = str , help = "wheels destination: wppm pylock.toml -wd destination_of_wheels" )
279+ parser .add_argument ("-ls" , "--list" , action = "store_true" , help = "list installed packages matching [optional] expression: wppm -ls, wppm -ls pand" )
280+ parser .add_argument ("-lsa" , dest = "all" , action = "store_true" ,help = f"list details of packages matching [optional] expression: wppm -lsa pandas -l1" )
281+ parser .add_argument ("-md" , dest = "markdown" , action = "store_true" ,help = f"markdown summary if the installation" )
282+ parser .add_argument ("-p" ,dest = "pipdown" ,action = "store_true" ,help = "show Package dependencies of the given package[option], [.]=all: wppm -p pandas[.]" )
283+ parser .add_argument ("-r" , dest = "pipup" , action = "store_true" , help = f"show Reverse wppmdependancies of the given package[option]: wppm -r pytest[test]" )
284+ parser .add_argument ("-l" , dest = "levels" , type = int , default = 2 , help = "show 'LEVELS' levels of dependencies (with -p, -r), default is 2: wppm -p pandas -l1" )
285+ parser .add_argument ("-t" , dest = "target" , default = sys .prefix , help = f'path to target Python distribution (default: "{ sys .prefix } ")' )
285286 parser .add_argument ("-i" , "--install" , action = "store_true" , help = "install a given package wheel or pylock file (use pip for more features)" )
286287 parser .add_argument ("-u" , "--uninstall" , action = "store_true" , help = "uninstall package (use pip for more features)" )
287288
@@ -290,6 +291,10 @@ def main(test=False):
290291 targetpython = None
291292 if args .target and args .target != sys .prefix :
292293 targetpython = args .target if args .target .lower ().endswith ('.exe' ) else str (Path (args .target ) / 'python.exe' )
294+ if args .wheelsource == "." : # play in default WheelHouse
295+ if utils .is_python_distribution (args .target ):
296+ dist = Distribution (args .target )
297+ args .wheelsource = dist .wheelhouse / 'included.wheels'
293298 if args .install and args .uninstall :
294299 raise RuntimeError ("Incompatible arguments: --install and --uninstall" )
295300 if args .registerWinPython and args .unregisterWinPython :
@@ -360,6 +365,9 @@ def main(test=False):
360365 if args .movable :
361366 p = subprocess .Popen (["start" , "cmd" , "/k" ,dist .python_exe , "-c" , cmd_mov ], shell = True , cwd = dist .target )
362367 sys .exit ()
368+ if args .markdown :
369+ print (dist .generate_package_index_markdown ())
370+ sys .exit ()
363371 if not args .install and not args .uninstall and args .fname .endswith (".toml" ):
364372 args .install = True # for Drag & Drop of .toml (and not wheel)
365373 if args .fname == "" or (not args .install and not args .uninstall ):
0 commit comments