Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion python setup.py sdist - include pxd files
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robert Cimrman  
View profile  
 More options Dec 1 2011, 4:29 am
From: Robert Cimrman <cimrm...@ntc.zcu.cz>
Date: Thu, 1 Dec 2011 10:29:19 +0100 (CET)
Local: Thurs, Dec 1 2011 4:29 am
Subject: Re: [cython-users] Re: python setup.py sdist - include pxd files

On Wed, 30 Nov 2011, Lisandro Dalcin wrote:
> On 30 November 2011 07:29, Robert Kern <robert.k...@gmail.com> wrote:
>> On 11/29/11 3:38 PM, Robert Cimrman wrote:

>>> Hi,

>>> I googled a bit how to properly make 'python setup.py sdist' include the
>>> pxd
>>> files, and found not much. So I have solved my problem by including them
>>> manually as data files, but I wonder - is there a cleaner way?

>> If you want them as part of the installed package like Cython/Include/ does,
>> they should be included in the package_data.

> And of course, installing *.pxds (and adding a get_include() in your
> top package namespace, like NumPy does) is a VERY good idea. That way,
> third party Cython code can fast access the internals of your cdef
> classes.

>> If they are just to be
>> distributed in the source tarball outside of the package itself, Lisandro's
>> MANIFEST.in line is appropriate.

> BTW, It is also also appropriate for *.pyx sources.

Thanks, Lisandro and Robert, for your feedback.

My primary concern was to have the *.pxd files in the source tarball, not
so much their installation.

I am using numpy.distutils, and so use config.add_data_files() function, which
does the job, and also makes them to be installed along the compiled
modules. I have also (wrongly) added the *.pyx files in the same way,
but there is probably no reason for them to be installed?

Thanks!
r.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.