I have a setup.py with something like this:
import glob
....
setup( ...,
...,
data_files = [ ( "pixmaps", glob.glob("pixm aps/*.xpm") ) ]
....
)
The tarball I made with "python setup.py sdist" looks good except
none of the data_files show up in tarball?!?!
How fix?
Chris 5 7524
At some point, se******@spawar .navy.mil (Christian Seberino) wrote: I have a setup.py with something like this:
import glob
...
setup( ..., ..., data_files = [ ( "pixmaps", glob.glob("pixm aps/*.xpm") ) ] .... )
The tarball I made with "python setup.py sdist" looks good except none of the data_files show up in tarball?!?!
How fix?
You have to add them to your MANIFEST.in . Something like:
include pixmaps/*.xpm
setup(scripts=. ..) has the same problem.
--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)phy sics(dot)mcmast er(dot)ca
David
Thank you *very* much. I needed that.
Chris
co**********@ph ysics.mcmaster. ca (David M. Cooke) wrote in message news:<qn******* ******@arbutus. physics.mcmaste r.ca>... At some point, se******@spawar .navy.mil (Christian Seberino) wrote:
I have a setup.py with something like this:
import glob
...
setup( ..., ..., data_files = [ ( "pixmaps", glob.glob("pixm aps/*.xpm") ) ] .... )
The tarball I made with "python setup.py sdist" looks good except none of the data_files show up in tarball?!?!
How fix?
You have to add them to your MANIFEST.in . Something like: include pixmaps/*.xpm
setup(scripts=. ..) has the same problem.
David
I'm sorry but I'm still having problems.
I added an include line in MANIFEST.in
but still cannot get *any* data files included!!
I made a toy example to show my problem...
=============== =============== ===============
Here are my package files:
=============== =============== ===============
setup.py
MANIFEST.in
foo.py
somedata
=============== =============== ===============
Here is contents of setup.py:
=============== =============== ===============
from distutils.core import setup
setup(name = "foo",
version = "1.0",
data_files = [ ("data", ["somedata"]) ],
packages = [""])
=============== =============== ===============
Here is MANIFEST.in:
=============== =============== ===============
include "somedata"
=============== =============== ===============
Here is what happens when I try to do "python setup.py sdist":
=============== =============== ===============
% python setup.py sdist
running sdist
....etc.
reading manifest template 'MANIFEST.in'
warning: no files found matching '"somedata"'
....etc.
=============== =============== ===============
I tried *absolute* paths in MANIFEST.in and data_files.
I tried to move data files to different places. I tried using wild
cards.
NOTHING seems to make distutils SEE my data files?!?!?
Chris
* Christian Seberino
|
| Here is MANIFEST.in:
| =============== =============== ===============
| include "somedata"
Try:
include somedata
- Terje
Terje
Thanks. All is well now. Does it seem strange to you that you must
specify data files in setup.py with data_files field and then
AGAIN in the MANIFEST.in file with include???
How make MANIFEST.in NOT be necessary for data files?
Chris
Terje Rosten <te******@phys. ntnu.no> wrote in message news:<yo******* ******@bohm.phy s.ntnu.no>... * Christian Seberino | | Here is MANIFEST.in: | =============== =============== =============== | include "somedata"
Try:
include somedata
- Terje This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Harrison |
last post by:
afternoon pythonic gurus,
quick question about distutils.
Im compiling on solaris 9 and am having problems with the linking (I loathe solaris these days ;-),
and if I call gcc by hand and remove the -shared flag and replace it with -G it works.
But I just cant find where I need to change this in the distutils package for my install of...
|
by: A.M. Kuchling |
last post by:
I want to make a Distutils 1.1 release that wraps up the version of the code
that was in Python 2.3. This would be the last 1.5.2-compatible release of
Distutils, giving people the chance to use the current code with versions of
Python from 1.5.2 to 2.3. A future Distutils 2.0 would then drop 1.5.2
compatibility.
The README and related...
|
by: Rick Muller |
last post by:
I've been trying to figure out whether there are any plans to add an
"uninstall" feature to the Python distutils. Googling has found
several people posting the same question, but, to the best of my
knowledge, no answers.
Can anyone tell me whether this has been proposed before? Thanks in
advance.
|
by: Jens Thiede |
last post by:
Pardon the silly question, but can one use distutils to install
somewhere other than site-packages, or is distutils only ment for this
kind of a job. I'd like to use it to make the distribution of my
programs simpler :)
Thanks for any good replies,
Jens.
|
by: Colin J. Williams |
last post by:
The distutils download page has:
--------------------------------------------------------
Current stable release
The current stable release is Distutils 1.0.2; you can download it as:
* Distutils-1.0.2.tar.gz (source distribution) (233k)
* Distutils-1.0.2.zip (source distribution) (274k)
* Distutils-1.0.2.win32.exe (Windows installer)...
| |
by: Qiangning Hong |
last post by:
I am writing a setup.py for my package. I have a pre-compiled
myextmod.pyd file in my package and I want the distutils to
automatically copy it to
C:\Python23\Lib\site-packages\mypackage\myextmod.pyd.
I try to add the following parameter to setup():
data_file = )],
but it installs the pyd file to C:\Python23\mypackage\myextmod.pyd,
|
by: Laszlo Zsolt Nagy |
last post by:
How how can I install my .mo files from a distutil script into its
default location?
sys.prefix + os.sep + 'share' + os.sep + 'locale'
|
by: RickMuller |
last post by:
I really appreciate the ease that the distutils make distributing
Python modules. However, I have a question about using them to
distribute non-Python (i.e. text) data files that support Python
modules. Currently when I have data of this type, I parse it into
python objects and make a python module from it. In other words, given
a data file...
|
by: vedrandekovic |
last post by:
Hello again,
Is there any patch for python "distutils", for this
ImportError: cannot import name log
Regards,
Vedran
|
by: Rick Muller |
last post by:
I need some distutils help. I currently run a python library
(PyQuante) that, until recently, had all of its modules in a single
directory, called "PyQuante". The setup command in my setup.py module
had a single "packages" line:
packages = ,
I moved some of the routines into Basis and IO subdirectories of
PyQuante, and amended the...
|
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...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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...
|
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...
|
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...
|
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...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |