Python: Is there a performance difference between `dist` and` sdist`?

Python setuptoolscan create the source distribution:

python setup.py sdist # create a source distribution (tarball, zip file, etc.)

Or binary distribution:

python setup.py bdist   # create a built (binary) distribution

As far as I understand, there should be no differences in performance:

  • bdistinstalls already compiled files .pycfrom the binary package.
  • sdistcompiles files .pyinto files .pycand installs them.

When executed, it doesn't matter how the files .pycare compiled - they should have the same performance.

Is there any performance difference between packages distand sdistpython?

+4
source share
1 answer

Python, . , .py .pyc, , . .pyo , , , .

, C. sdist , , , Python .. , . , .

, bdist . , , . , . Setuptools -, .

+4

Source: https://habr.com/ru/post/1543006/


All Articles