I am currently stuck on exercise 46 in learn python the hard way. I was able to do everything without any issues up until the required quiz.
Here are the questions for the required quiz:
Read about how to use all of the things you installed.
Read about the setup.py file and all it has to offer. Warning: it is not a very well-written piece of software, so it will be very strange to use.
Make a project and start putting code into the module, then get the module working.
Put a script in the bin directory that you can run. Read about how you can make a Python script that's runnable for your system.
Mention the bin script you created in your setup.py so that it gets installed.
Use your setup.py to install your own module and make sure it works, then use pip to uninstall it.
I did questions 1 - 3 without issues but I do not know what to do for the other questions. I tried to read about how to make a python script that's runnable for my system but could not find anything. All the results talked about executable script. Is this the same as a runnable script? Also, how do I install a script using setup.py
here is my module called math.py:
print "5 + 5 is %d" % (5 + 5)
and here is my setup.py:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Simple addition project',
'author': 'Nathan',
'url': 'URL to get it at.',
'download_url': 'Where to download it at.',
'author_email': 'nathanralph33@gmail.com',
'version': '0.1',
'install_requires': ['nose'],
'packages': ['math'],
'scripts': [],
'name': 'math.py'
}
setup(**config)
I am a beginner to python programming so I apologize for my question. I have no idea what to do for this part of the exercise. Any help will be much appreciated. Thanks in advance
Sorry for any spelling/grammatical errors.
My operating system is windows 10 and I am using windows powershell as a terminal.