<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? 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. 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"> [console_scripts]<br></blockquote><blockquote type="cite"> liten = liten:main<br></blockquote><blockquote type="cite"> """,<br></blockquote><blockquote type="cite"> )<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> version='0.1.3',</div><div> description='a de-duplication command line tool',</div><div> long_description="This command line tool will examine a file system and \</div><div> report back duplicates using a md5 checksum hash algorithm.",</div><div> author='Noah Gift',</div><div> <a href="mailto:author_email='noah.gift@gmail.com">author_email='noah.gift@gmail.com</a>',</div><div> url='<a href="http://code.google.com/p/liten/'">http://code.google.com/p/liten/'</a>,</div><div> license='MIT',</div><div> packages=find_packages(),</div><div> zip_safe=False,</div><div> entry_points="""</div><div> [console_scripts]</div><div> liten = liten:main</div><div> """,</div><div> )</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(). 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. 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>