4.3 - Build the Package
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is the purpose of the setup.py file?
💡 Hint: Think about what information is necessary to describe a Python package.
What command do you use to create a source distribution?
💡 Hint: Recall the common command format for building packages in Python.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What file is required to configure your Python package?
💡 Hint: Remember the primary configuration file used in Python packaging.
True or False: The bdist_wheel command produces a source distribution.
💡 Hint: Bring to mind the file types generated by different build commands.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Your package is built successfully, but it fails to upload to PyPI. Describe how you would troubleshoot this issue.
💡 Hint: Think about the common pitfalls that might occur during uploads.
Imagine you have a library that depends on specific versions of two packages, NumPy and Pandas. Explain how you would manage these dependencies in your setup.py file.
💡 Hint: Recall the syntax used to specify dependencies in setup.py.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.