473,659 Members | 3,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some question about setuptools module

I'm new to setuptools.

One question is:

Recently I want to use setuptools for a project. My command line is just like :

python setup.py sdist --formats=gztar

But I found some deleted files also included in the package. These
files are .pyc suffixed. I use subversion. I checked the setuptools'
code, and found that setuptools indeed follows the .svn/entries file,
but it only retrieves files, and check if the file is exist. But in my
entries file, just like:

<entry
name="EasyEleme nts.pyc"
kind="file"
deleted="true"
revision="33"/>

You can see the "deleted" field is "true", so the file should not be
included in the package, even through the file is exist. So I think
maybe the .pyc, .pyo file should be omited.

The another question is:

I have below directory structure:

A/
setup.py
B/
__init__.py
b.py
t.txt
.svn/
entries

So B is a package dir. But as I run setup.py, the t.txt is not include
in the package. I followed the source code and found it was because
that dir A hasn't in version control, i.e. there is not .svn directory
in dir A, so the setuptools could not traversal the subdirectory. I
don't know how to write my setup.py script.

I'm sorry may be this letter is not suit for this maillist.
--
I like python!
My Donews Blog: http://www.donews.net/limodou
New Google Maillist: http://groups-beta.google.com/group/python-cn
Aug 5 '05 #1
0 1063

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
9841
by: yoda | last post by:
I've recently configured my network such that I use squid as a http proxy. I'd now like to be able to use setuptools and ez_setup via this proxy. Is this possible? If so, how do I do it? The most that the setuptools documentation says is (http://peak.telecommunity.com/DevCenter/setuptools): "....If you are behind an NTLM-based firewall that prevents Python programs from accessing the net directly, you may wish to first install and...
3
1442
by: Alia Khouri | last post by:
Due to a recent site overhaul by sourceforge certain files linked to from pypi won't install. For example, in trying to install all the dependencies for the subway web framework, I got this kind of error: <snip> .. .. .. Searching for CherryPy>=2.1.0-rc1 Reading http://www.python.org/pypi/CherryPy/
1
1431
by: Ilias Lazaridis | last post by:
If I understood things right, setuptools extends the functionality of distutils Thus replacing within a setup.py: from distutils.core import setup with try:
2
1592
by: hyena | last post by:
Hi, I am quite new to python and am looking for some tools that can install and update modules a bit more intelligent then "python setup.py install". Is there some thing like "yum" in fedora which can search and install/update packages automatically? thanks in advance!
2
2236
by: seb.haase | last post by:
Hi, I am distributing a package with a precompiled collection of modules and packages useful for Python based medical/biological/astronomical image analysis and algorithm development. (Codename: Priithon). For Priithon I put all modules/packages in a simple / single directory (tree) including one starting batch/script file. This script sets up PYTHONPATH to find modules at this place. It works fine for Windows,Linux and Mac-OSX. Now I...
0
1428
by: Calvin Spealman | last post by:
I am trying to install the newest setuptools on my macbook. 2.3 was installed by default, and 2.4 is installed and is my default version now. However, when I try to import setuptools, which is required to _install_ setuptools, I get this error: macbkpro1:~/Desktop/setuptools-0.6c7 ironfroggy$ python setup.py install Traceback (most recent call last): File "setup.py", line 7, in ? execfile(convert_path('setuptools/command/__init__.py'),...
7
2310
by: Thorsten Kampe | last post by:
Date: Fri, 23 Nov 2007 19:35:21 -0000 Message-ID: <MPG.21b13bd5fda74bd3989729@news.individual.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 Hi, can anyone give me a short code snippet how to install a missing
1
1223
by: Gabriel Genellina | last post by:
En Thu, 29 May 2008 06:29:00 -0300, <Dominique.Holzwarth@ch.delarue.com> escribió: You don't need setuptools at all. Just write a setup.py file using the standard distutils module, and execute: python setup.py bdist_wininst It will create an executable installer. A simple setup.py script looks
3
1524
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Hi, for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/ tests.py?rev=89831&view=auto test file, there is this doctests : def develop_verbose(): """ We should be able to deal with setup scripts that aren't setuptools based. ... '''
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.