KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm not quite sure how to build a really simple one-file source module. Is there a sample module out there one the web somewhere which can be built as a python .egg? From the setuptools page it looks pretty simple, you just have your setup.py file and then at least one other .py file somewhere, and I can build an .egg file OK, and even install it using easy_install , but I can't seem to import the file from within python. (note: using 2.6.4) here's my sample dir: sconsconfig setup.py sconsconfig.py setup.py: from setuptools import setup, find_packages setup(name='sconsconfig', version='0.1', packages = find_packages(), ) sconsconfig.py: def blarg(x): return x+1 If I run setup.py bdist_egg it then creates an egg file, but if I look in it, there's no .py source file....
Tags (comma-separated)
Save Edits
Cancel