Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# -*- coding: utf-8 -*- 

2""" 

3@file 

4@brief Defines a very small set of modules. 

5""" 

6import sys 

7 

8 

9def minimal_set(): 

10 """ 

11 list of modules to add to python to get a minimal python 

12 """ 

13 names = [ 

14 "autopep8", 

15 'entrypoints', 

16 "flake8", 

17 'markupsafe', 

18 "mccabe", 

19 "pep8", 

20 "pipdeptree", 

21 "psutil", 

22 "pyflakes", 

23 "pycodestyle", 

24 "pyquicksetup", 

25 "pywin32" if sys.platform.startswith("win") else None, 

26 "pywin32-ctypes" if sys.platform.startswith("win") else None, 

27 "six", 

28 "virtualenv", 

29 "wheel", 

30 "winshell" if sys.platform.startswith("win") else None, 

31 ] 

32 

33 from .automate_install import find_module_install 

34 return [find_module_install(_) for _ in names if _ is not None] 

35 

36 

37def pywin32_set(): 

38 """ 

39 list of modules to add to python to get python with pywin32 

40 """ 

41 names = ["pywin32" if sys.platform.startswith("win") else None, 

42 "pywin32-ctypes" if sys.platform.startswith("win") else None, 

43 "winshell" if sys.platform.startswith("win") else None, 

44 ] 

45 

46 from .automate_install import find_module_install 

47 return [find_module_install(_) for _ in names if _ is not None]