<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">cp script.py build/lib<br></blockquote><br>Why are you doing these steps? &nbsp;I don't understand.</blockquote><div><br class="webkit-block-placeholder"></div><div>In order to create an egg, to my knowledge, you create a build/lib directory and place your scripts or library inside, then run setup.py bdist_egg. &nbsp;Those were the steps I took, to successfully create a python 2.4 and a python 2.5 egg.</div><br><blockquote type="cite"><br><blockquote type="cite">Step 3:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In current directory run:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/ usr/local/bin/python2.4<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Step 4:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Grab rpm out of newly created dist directory:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This process works just fine if I substitute:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">python2.4 ./setup.py bdist_egg<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In my setup.py I have an entry point as follows:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> entry_points="""<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[console_scripts]<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;liten = liten:main<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;""",<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br></blockquote><br>What's the rest of your setup.py?</blockquote><div><br class="webkit-block-placeholder"></div>Here is the rest:</div><div><br class="webkit-block-placeholder"></div><div><div><br class="webkit-block-placeholder"></div><div>from setuptools import Extension, find_packages, setup</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>setup(name='liten',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;version='0.1.3',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;description='a de-duplication command line tool',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;long_description="This command line tool will examine a file system and \</div><div>&nbsp;&nbsp; &nbsp; &nbsp;report back duplicates using a md5 checksum hash algorithm.",</div><div>&nbsp;&nbsp; &nbsp; &nbsp;author='Noah Gift',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;<a href="mailto:author_email='noah.gift@gmail.com">author_email='noah.gift@gmail.com</a>',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;url='<a href="http://code.google.com/p/liten/'">http://code.google.com/p/liten/'</a>,</div><div>&nbsp;&nbsp; &nbsp; &nbsp;license='MIT',</div><div>&nbsp;&nbsp; &nbsp; &nbsp;packages=find_packages(),</div><div>&nbsp;&nbsp; &nbsp; &nbsp;zip_safe=False,</div><div>&nbsp;&nbsp; &nbsp; &nbsp;entry_points="""</div><div>&nbsp;&nbsp; &nbsp; &nbsp;[console_scripts]</div><div>&nbsp;&nbsp; &nbsp; &nbsp;liten = liten:main</div><div>&nbsp;&nbsp; &nbsp; &nbsp;""",</div><div>&nbsp;&nbsp; &nbsp; &nbsp;)</div><div><br class="webkit-block-placeholder"></div><blockquote type="cite"><br><br><blockquote type="cite">My guess is that somehow I am not creating the RPM properly, and I<br></blockquote><blockquote type="cite">need to have a different directly structure then when creating an egg?<br></blockquote><br>My guess is that your 'liten' module isn't listed in the py_modules argument to setup(). &nbsp;Is it?<br></blockquote></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>That is correct. &nbsp;I am able to create eggs with entry points that work just fine without specifying my module, but are you saying that in order to use the bdist_rpm command that I also need to include:</div></div></span></div></span></div></span> </div><span class="Apple-style-span" style="font-family: arial; font-size: 13px; line-height: 15px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 115%/normal monospace; line-height: 1.22em; font-size: 92%; padding-top: 1em; padding-right: 0px; padding-bottom: 1em; padding-left: 0px; ">py_modules=['liten']</pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 115%/normal monospace; line-height: 1.22em; font-size: 92%; padding-top: 1em; padding-right: 0px; padding-bottom: 1em; padding-left: 0px; ">Of course, I am going to try adding this right now.</pre></span></body></html>