Python Packaging Flashcards

1
Q

Windows/Mac installation philosophy is ___

A

self-containment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Linux installation philosophy is ___

A

modular

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Upgrading a dependency affects all packages that depend upon it, which sacrifices some ___

A

stability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

module

A

Python file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

package

A

directory containing Python files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

release

A

one version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Problem: To use distutils, conventionally developers use setup.py, but ___

A

it does too much (build, package, publish, install & more) and causes confusion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Problem: static metadata file sent to PyPI is dependent on ___

A

the platform it is compiled on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Problem: PyPI server

A

PyPI is a single server holding various dependencies, and thus is a single point of failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Problem: When distributions are not stored at PyPI and a Download-URL link is provided, therefore ___

A

installers must follow that link and hope it works

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Problem: Distutils installer doesn’t record what was installed, therefore ___

A

it’s impossible to remove all files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Problem: To work for a particular platform, a packager ___

A

must repackage and patch setup.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Improved Standards: Metadata

A
  • sane versioning
  • project-level dependencies (e.g. optional versioning of dependencies)
  • environment markers to add a condition about the execution environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly