473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

distutils is able to handle...

mg
Hello

I work on an finite element framework and Python bindings have been
developped.
Actually, we use Boost.Build as build system but we would like to change
it.

We have two kinds of problems. First, the framework is used for generate
pure C++ applications with static libraries ; second, the framework have
some dependencies to fortran projects.
Then, in order to know if Distutils can be use in our case, I would like
to know if :
- Can distutil compile static C/C++ libraries ?
- Can distutil compile C/C++ applications ?
- Can distutil manage fortran compiler and compile fortran libraries and
applications ?

Thank for your answers
Jul 21 '05 #1
3 1471
"mg" <mg*************@laposte.net> wrote:
Hello

I work on an finite element framework and Python bindings have been
developped.
Actually, we use Boost.Build as build system but we would like to change
it.

We have two kinds of problems. First, the framework is used for generate
pure C++ applications with static libraries ; second, the framework have
some dependencies to fortran projects.
Then, in order to know if Distutils can be use in our case, I would like
to know if :
- Can distutil compile static C/C++ libraries ?
- Can distutil compile C/C++ applications ?
- Can distutil manage fortran compiler and compile fortran libraries and
applications ?

Thank for your answers


I don't think distutils can handle all these, especially the last one,
so I doubt it's the right tool in your case. I would suggest SCons
(http://www.scons.org/), a modern make/automake/autoconf replacement
that uses python for its configuration files instead of yet another
cryptic half-baked mini-language or XML.

George

Jul 21 '05 #2
George Sakkis wrote:
"mg" <mg*************@laposte.net> wrote:

Hello

I work on an finite element framework and Python bindings have been
developped.
Actually, we use Boost.Build as build system but we would like to change
it.

We have two kinds of problems. First, the framework is used for generate
pure C++ applications with static libraries ; second, the framework have
some dependencies to fortran projects.
Then, in order to know if Distutils can be use in our case, I would like
to know if :
- Can distutil compile static C/C++ libraries ?
- Can distutil compile C/C++ applications ?
- Can distutil manage fortran compiler and compile fortran libraries and
applications ?

Thank for your answers


I don't think distutils can handle all these, especially the last one,
so I doubt it's the right tool in your case. I would suggest SCons
(http://www.scons.org/), a modern make/automake/autoconf replacement
that uses python for its configuration files instead of yet another
cryptic half-baked mini-language or XML.


It does handle FORTRAN when using the scipy_distutils extensions.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 21 '05 #3
[George Sakkis]
I would suggest SCons (http://www.scons.org/), a modern
make/automake/autoconf replacement that uses python for its
configuration files instead of yet another cryptic half-baked
mini-language or XML.


Python might not be the most legible way to describe what a Makefile
has to describe, it asks for more syntax that we really need. On the
other hand, it is convenient having Python handy for extending the
capabilities of your description file, that is, having Python has a
provisional, supplementary card, instead the only and mandatory one.

I'm exploring with some pleasure Bram Moolenaar's A-A-P tool (see
http://www.a-a-p.org). This is implemented in Python, but does not
force people into Python syntax for Makefiles. It might be a nicer
compromise. As usual from Bram, documentation is abundant and useful.

--
François Pinard http://pinard.progiciels-bpi.ca
Jul 21 '05 #4

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

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
0
by: Jorge Godoy | last post by:
Hi! For the following setup.py, I get this error: byte-compiling /var/tmp/bhsys-buildroot/usr/lib/python2.3/site-packages/bhsys/Impressao.py to Impressao.pyc byte-compiling...
5
by: Lonnie Princehouse | last post by:
I'm in a situation where I need to distribute several interdependent Python packages. There are good reasons not to combine them all into one package. Distutils doesn't seem to be able to bundle...
1
by: Bengt Richter | last post by:
I'd like to override the default d:\Python23\Lib\site-packages\ destination, at least as an option. I have used installshield in the past, which gives extensive control over just about...
15
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: *...
1
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do...
9
by: seberino | last post by:
I have been using distuils for a while and was wondering when Python Eggs (new project) is better? So basically Python Eggs precompiles and compresses binaries for you so you just have to load...
8
by: mg | last post by:
Hello, I try to compile Python and several packages (like Numarray) with Visual Studio 2005. I downloaded the last version of Python from Subversion, and project files are provided for Visual...
7
by: Eric S. Johansson | last post by:
is there anyway I can, in a setup.py file, set and internal equivalent to the '--install-scripts' commandline option? script installation directory but I don't want on the command line where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...

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.