0

I Don't Understand This Section

Packaging The next step in packaging is to write the setup.py file. This contains information necessary to assemble the package so it can be uploaded to PyPI and installed with pip (name, version, etc.). Example of a setup.py file: from distutils.core import setup setup( name='SoloLearn', version='0.1dev', packages=['sololearn',], license='MIT', long_description=open('README.txt').read(), ) After creating the setup.py file, upload it to PyPI, or use the command line to create a binary distribution (an executable installer). To build a source distribution, use the command line to navigate to the directory containing setup.py, and run the command python setup.py sdist. Run python setup.py bdist or, for Windows, python setup.py bdist_wininst to build a binary distribution. Use python setup.py register, followed by python setup.py sdist upload to upload a package. Finally, install a package with python setup.py install. ---------------------------- I don't understand any of the word usage here and the code, if this could be explained in greater detail on a basic level it'd be greatly appreciated.

5th Jan 2020, 3:48 PM
Tom
5 Antworten
+ 7
sdist
3rd Nov 2020, 8:21 AM
md monower hasan
md monower hasan - avatar
+ 4
sdist
27th Dec 2020, 10:48 AM
Tushar Kale
Tushar Kale - avatar
+ 3
Just like classes are groups of functions and modules are groups of classes and functions, Packages are groups of modules. PyPi is where all the packages are uploaded. Packages are installed using the command-- pip install package_name To make your own package, you need to make a setup.py file as shown above, which allows it to be accessed by pip.
5th Jan 2020, 7:54 PM
XXX
XXX - avatar
0
sdist
18th May 2021, 1:15 PM
Мельник Алексей
Мельник Алексей - avatar
0
sdist
20th Dec 2021, 4:58 PM
Ayyoub Chikhi