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 "pywin32" if sys.platform.startswith("win") else None, 

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

26 "six", 

27 "virtualenv", 

28 "wheel", 

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

30 ] 

31 

32 from .automate_install import find_module_install 

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

34 

35 

36def pywin32_set(): 

37 """ 

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

39 """ 

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

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

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

43 ] 

44 

45 from .automate_install import find_module_install 

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