egg

Module found in install mode but not in develop mode using setuptools

耗尽温柔 提交于 2021-02-05 03:23:49
问题 I'm using setuptools for the first time, and trying to package my code so that others can easily develop it. I'm running everything in a virtual environment. Short question : How do I change the directory that the egg-link points to when I run python setup.py develop ? Long question : The module I'm developing is called cops_and_robots . When I run python setup.py install , things work fine and I'm able to import my cops_and_robots module. However, when I run python setup.py develop , running

Module found in install mode but not in develop mode using setuptools

爷,独闯天下 提交于 2021-02-05 03:21:14
问题 I'm using setuptools for the first time, and trying to package my code so that others can easily develop it. I'm running everything in a virtual environment. Short question : How do I change the directory that the egg-link points to when I run python setup.py develop ? Long question : The module I'm developing is called cops_and_robots . When I run python setup.py install , things work fine and I'm able to import my cops_and_robots module. However, when I run python setup.py develop , running

Install MySQLdb (for python) as non-compressed egg

拥有回忆 提交于 2020-06-25 04:20:32
问题 The install instructions are: $ python setup.py build $ sudo python setup.py install # or su first This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library? Thanks! 回答1: OK, I hate to answer my own question, but: find your python site-packages (mine is /usr/local/lib/python2.5/site-packages ) then: $ unzip MySQL_python-1.2.2-py2.5-linux-i686.egg This worked fine for me 回答2: I'm a little late to this party, but here's a way to do it that seems

Install MySQLdb (for python) as non-compressed egg

▼魔方 西西 提交于 2020-06-25 04:20:30
问题 The install instructions are: $ python setup.py build $ sudo python setup.py install # or su first This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library? Thanks! 回答1: OK, I hate to answer my own question, but: find your python site-packages (mine is /usr/local/lib/python2.5/site-packages ) then: $ unzip MySQL_python-1.2.2-py2.5-linux-i686.egg This worked fine for me 回答2: I'm a little late to this party, but here's a way to do it that seems

Install MySQLdb (for python) as non-compressed egg

回眸只為那壹抹淺笑 提交于 2020-06-25 04:20:14
问题 The install instructions are: $ python setup.py build $ sudo python setup.py install # or su first This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library? Thanks! 回答1: OK, I hate to answer my own question, but: find your python site-packages (mine is /usr/local/lib/python2.5/site-packages ) then: $ unzip MySQL_python-1.2.2-py2.5-linux-i686.egg This worked fine for me 回答2: I'm a little late to this party, but here's a way to do it that seems