简体   繁体   English

在Python Setup.py文件上安装选项

[英]Install Options on Python Setup.py Files

I have a python package that I create a package using setuptools. 我有一个Python软件包,可以使用setuptools创建一个软件包。

It creates an .egg file and loads it into the site-package folder for my python win 32-bit library. 它创建一个.egg文件,并将其加载到我的python win 32位库的site-package文件夹中。

My question is this. 我的问题是这个。 If there a way to create the setup.py so it can move the files to the site-package lib folder not creating an egg or are eggs the new thing at setuptools 3.3? 如果有一种创建setup.py的方法,它可以将文件移动到site-package lib文件夹中而不创建鸡蛋,或者egg是setuptools 3.3的新东西吗?

I am running into errors with my code on various machines, and I want to be able to step through to the code, but the egg will not allow me to do this. 我在各种机器上的代码都遇到错误,并且我希望能够逐步执行代码,但麻烦的是我不允许这样做。

Thank you 谢谢

To solve this issue, I just did the following in the setup.py: 为了解决此问题,我在setup.py中执行了以下操作:

from distutils.core import setup
setup(...)

I had list my individual packages in the packages option on the setup function. 我在设置功能的“软件包”选项中列出了我的各个软件包。

It created both the .egg file and the package in the site=packages folder. 它在site = packages文件夹中创建了.egg文件和包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM