Skip to main content
gamedev.net
🔒 Locked

Python Module Distribution

Started by Xzeleous 2 replies 950+ views
Original Post
Xzeleous
Xzeleous
Hi, Im sure many of you have had experience in the writing of Python modules, and Im just a begginer. And I cant even get the tutorial on how to distribute my program! It says after making both my program.py script and setup.py script to: Run: python setup.py sdist But I try this in both the Python GUI, Python command line, and run program with Windows XP and I still dont get my .zip file! Whats going on?
The below statement is true.The above statement is false.
Oluseyi
Oluseyi
Quote:
Original post by Xzeleous
But I try this in both the Python GUI, Python command line, and run program with Windows XP and I still dont get my .zip file! Whats going on?

Start by telling us what you do get; do you get errors? Follow up by showing us how your setup.py looks.
Xzeleous
Xzeleous
I get a syntax error when I type this in after running the setup.py and I get an error when I put it in the command prompt.

Setup.py:
from distutils.core import setup
setup(name='Roblox Tools 2009 Calculator',
version='1.0',
py_modules=['calculator'],
)
The below statement is true.The above statement is false.
swiftcoder
swiftcoder
Quote:
Original post by Xzeleous
I get a syntax error when I type this in after running the setup.py and I get an error when I put it in the command prompt.

Setup.py:
from distutils.core import setup
setup(name='Roblox Tools 2009 Calculator',
version='1.0',
py_modules=['calculator'],
)
You have a trailing comma after ['calculator'].
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.