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 Using waf to call setup.py with a specific python
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
 
F.D. Sacerdoti  
View profile  
 More options Nov 5 2012, 3:48 pm
From: "F.D. Sacerdoti" <federicosacerd...@gmail.com>
Date: Mon, 5 Nov 2012 12:48:43 -0800 (PST)
Local: Mon, Nov 5 2012 3:48 pm
Subject: Using waf to call setup.py with a specific python

Hi,

I am using waf to build a python extension, which works fine using the
"pyext" feature. However it may be necessary to adopt some legacy modules
that are built with a 'setup.py' file. Is there a waf tool that takes
setup.py as input?

Specifically it seems easy to do if I have access to the discovered python
version, i.e. the result of ctx.load('python'), which in my case is quite
specific, see below.

Checking for 'gcc' (c compiler)          :
/nix/store/bsw34rzr26clnarkxzgnfqa2la9gx5fy-gcc-4.7.2/bin/gcc                                                                                                      

Checking for 'g++' (c++ compiler)        :
/nix/store/bsw34rzr26clnarkxzgnfqa2la9gx5fy-gcc-4.7.2/bin/g++                                                                                                      

Checking for program python              :
/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/bin/python  

However I cannot seem to find this path in the bld argument to the build()
function! The closest I got was this:

(Pdb) dir(*bld.tools['python'])*
['DISTUTILS_IMP', 'Errors', 'FRAG', 'INST', 'Logs', 'Options',
'PYTHON_MODULE_TEMPLATE', 'Utils', '__builtins__', '__doc__', '__file__',
'__name__', '__package__', 'after_method', 'before_method',
'check_python_headers', 'check_python_module', 'check_python_version',
'conf', 'configure', 'extension', 'feature', 'feature_py',
'get_python_variables', 'init_pyembed', 'init_pyext', 'install_pyfile',
'options', 'os', 'process_py', 'set_bundle', 'sys']
(Pdb)
Perhaps such a thing isn't supported, but thanks for any clarity you can
give.
FDS


 
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.