[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: distutils: package data
From:       David Fraser <davidf () sjsoft ! com>
Date:       2005-03-30 15:54:00
Message-ID: d2ehvo$o9n$1 () ctb-nnrp2 ! saix ! net
[Download RAW message or body]

Qiangning Hong wrote:
> 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 = [('mypackage', ['mypackage/myextmod.pyd'])],
> 
> but it installs the pyd file to C:\Python23\mypackage\myextmod.pyd,
> this is not what I want.
> 
> And I don't want to specify the path in data_file to the absolution
> path 'C:\Python23\Lib\site-packages\mypackage', for portability, of
> course.
> 
> Any hints?
> 
Actually you probably want to look at describing the .pyd as an 
Extension. Then you can even give distutils the instructions to build 
it, and as a side effect you can install it to the right location
This may not be what you want though

David
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic