{"id":2591,"date":"2022-08-30T15:26:08","date_gmt":"2022-08-30T15:26:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/04\/problem-about-setuptools-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:08","modified_gmt":"2022-08-30T15:26:08","slug":"problem-about-setuptools-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-setuptools-collection-of-common-programming-errors\/","title":{"rendered":"problem about setuptools-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/66af3c3c9aeec7145ad1899bb242875f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNone-da<br \/>\npython setuptools egg software-packaging<br \/>\nOurs is a python shop. We have different python packages developed inhouse and will be deployed onto customers&#8217; environments(machines).This is how our development and release cycle happens.Once developers complete &#8220;testing&#8221; of a package, a distribution(egg file) of the package is prepared and pushed to a central archiving place. WHen we want to deploy our software to Customers, the same distributions(egg files) will be downloaded and installed in their environment.Assuming the &#8220;testing&#8221; happens<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/cmdb8.jpg?s=32&amp;g=1\" \/><br \/>\nShavais<br \/>\npython c osx setuptools py2app<br \/>\nI&#8217;m not sure my question \/ title is phrased quite right. I&#8217;m working on OSX 10.6 and python 2.7.1. I&#8217;ve used setuptools and py2app to create a .app, which I can run from the finder or from the terminal using open. One of my goals for the program is to launch quickly. When I go into the build folder and run the python program directly using python, my window pops up right away. In less than 1 second. It&#8217;s pretty consistent. But when I go into the dist folder and run the .app (either from t<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/89841cf57849bbe957c155d3d68252f6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJason<br \/>\npython python-3.x setuptools<br \/>\nWill the setuptools for windows python 2.7 http:\/\/pypi.python.org\/pypi\/setuptools#files be compatible with a python 3.2.x runtime. The installer fails to detect the python settings during an install. Should I wait for a new release?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0708f320a0c1cd10f63f1cdc64bcfa98?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWoltan<br \/>\npython numpy setuptools python-2.7<br \/>\nThis might be a follow up question of this one.I am using setuptools to install a package of mine. As a dependency I have listed numpy. I am using Python2.7 and when I dopython setup.py installwith this setup.py file:from setuptools import setupsetup(name = &#8220;test_pack&#8221;, install_requires = [&#8220;numpy&#8221;])I end up with this error message:ImportError: No module named numpy.distutilsWhat do I need to do in order to include numpy as a dependency and install it without having python-dev installed?The compl<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e1554622707bedd9202884900430b838?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGlyph<br \/>\npython twisted setuptools distutils distribute<br \/>\nThe Twisted Plugin System is the preferred way to write extensible twisted applications. However, due to the way the plugin system is structured (plugins go into a twisted\/plugins directory which should not be a Python package), writing a proper setup.py for installing those plugins appears to be non-trivial.I&#8217;ve seen some attempts that add &#8216;twisted.plugins&#8217; to the &#8216;packages&#8217; key of the distutils setup command, but since it is not really a package, bad things happen (for example, an __init__.py<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c66c796793a4df79af4692c816244c81?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSridhar Ratnakumar<br \/>\npython python-3.x setuptools pywin32 distribute<br \/>\nI am trying to install distribute using ActivePython 3.1.2 on Windows.Running python distribute_setup.py as described on the cheese shop give me:No setuptools distribution foundrunning installTraceback (most recent call last):File &#8220;setup.py&#8221;, line 177, in scripts = scripts,File &#8220;C:\\Dev\\Python_x86\\3.1\\lib\\distutils\\core.py&#8221;, line 149, in setupdist.run_commands()File &#8220;C:\\Dev\\Python_x86\\3.1\\lib\\distutils\\dist.py&#8221;, line 919, in run_commandsself.run_command(cmd)File &#8220;C:\\Dev\\Python_x86\\3.1\\lib\\distuti<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b76c7ff6f4903410c6b1a09cec6c4720?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLion Krischer<br \/>\npython numpy setuptools distutils setup.py<br \/>\nInside the setup.py script I need to create some temporary files for the installation. The natural place to put them would be the &#8220;build\/&#8221; directory.Is there a way to retrieve its path that works if installing via pypi, from source, easy_install, pip, &#8230;?Thanks a lot!<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0708f320a0c1cd10f63f1cdc64bcfa98?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWoltan<br \/>\npython installation dependencies package setuptools<br \/>\nI am trying to list ScientificPython as a dependency in my setup.py. However, during the installation process, python seems to not find the package. What is wrong in my approach?Here is my setup:import setuptools setuptools.setup(name = &#8216;MyPack&#8217;, version = &#8216;0.1&#8217;, description= &#8216;Description.&#8217;,author = &#8216;Me&#8217;,packages = setuptools.find_packages(),install_requires = [&#8216;ScientificPython&#8217;],dependency_links = [&#8220;https:\/\/sourcesup.cru.fr\/frs\/?group_id=180&amp;release_id=1351#stable-releases-2-8-title-conten<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-02-04 02:12:50. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>None-da python setuptools egg software-packaging Ours is a python shop. We have different python packages developed inhouse and will be deployed onto customers&#8217; environments(machines).This is how our development and release cycle happens.Once developers complete &#8220;testing&#8221; of a package, a distribution(egg file) of the package is prepared and pushed to a central archiving place. WHen we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2591","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2591"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2591\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}