I've got a python extension that comes with its own standard autoconf/
automake system, and I can "python setup.py build" just fine with it
as long as I have previously done "./configure" in that directory.
However, 'python setup.py bdist_rpm' can't hope to have done './
configure' first, as it untars and tries to build the extension there.
Is there a hook for bdist_rpm (and friends) that will allow me to
insert a './configure' in the build process, sometime before it tries
to build the extension?
Thanks,
Gary 3 1758
On Sep 20, 10:43 pm, Gary Jefferson <garyjefferson. ..@yahoo.com>
wrote:
I've got a python extension that comes with its own standard autoconf/
automake system, and I can "python setup.py build" just fine with it
as long as I have previously done "./configure" in that directory.
However, 'python setup.py bdist_rpm' can't hope to have done './
configure' first, as it untars and tries to build the extension there.
Is there a hook for bdist_rpm (and friends) that will allow me to
insert a './configure' in the build process, sometime before it tries
to build the extension?
Thanks,
Gary
I ended up simply subclassing 'Extension' and having it os.system('./
configure') before proceeding.
This isn't perfect, as it does the './configure' everytime, but it
works.
Gary
Gary Jefferson wrote:
On Sep 20, 10:43 pm, Gary Jefferson <garyjefferson. ..@yahoo.com>
wrote:
>I've got a python extension that comes with its own standard autoconf/ automake system, and I can "python setup.py build" just fine with it as long as I have previously done "./configure" in that directory.
However, 'python setup.py bdist_rpm' can't hope to have done './ configure' first, as it untars and tries to build the extension there.
Is there a hook for bdist_rpm (and friends) that will allow me to insert a './configure' in the build process, sometime before it tries to build the extension?
Thanks, Gary
I ended up simply subclassing 'Extension' and having it os.system('./
configure') before proceeding.
This isn't perfect, as it does the './configure' everytime, but it
works.
If it really is a one-off thing, you only need to ruin configure if
config-status doesn't exist. That isn't a difficult check ...
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Sorry, the dog ate my .sigline
Gary Jefferson wrote:
On Sep 20, 10:43 pm, Gary Jefferson <garyjefferson. ..@yahoo.com>
wrote:
>I've got a python extension that comes with its own standard autoconf/ automake system, and I can "python setup.py build" just fine with it as long as I have previously done "./configure" in that directory.
However, 'python setup.py bdist_rpm' can't hope to have done './ configure' first, as it untars and tries to build the extension there.
Is there a hook for bdist_rpm (and friends) that will allow me to insert a './configure' in the build process, sometime before it tries to build the extension?
Thanks, Gary
I ended up simply subclassing 'Extension' and having it os.system('./
configure') before proceeding.
This isn't perfect, as it does the './configure' everytime, but it
works.
[Sorry: it's config.status you shoudl check for, not config-status].
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Sorry, the dog ate my .sigline This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: yzzzzz |
last post by:
Hi,
I am compiling PHP 5.0.2 myself with MySQL support.
I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config
(see end of post for complete configure)
Note: I also have --with-mysql=/usr/local/mysql/. However, I get the
same errors when I configure without the mysql extension, just mysqli.
And as the documentation says, I use the same version of MySQL for both
extensions to avoid conflicts.
|
by: Michael Ströder |
last post by:
HI!
Is it possible to probe for installed libs with DistUtils?
I'd like to automatically search for optional libs and adjust C compiler
switchers before starting the build of a the extension module.
Ciao, Michael.
|
by: Jerry He |
last post by:
Hi,
I was trying to build a C++ extension on Win32 with
distutils. The extension worked on Cygwin but when I
tried it with the Win32-build python, it complained
that I don't have .NET Framework SDK installed. But
after I installed .NET Framework SDK 2.0, it still
complains
"error: The .NET Framework SDK needs to be installed
before building extensions for Python." (I also did
try restarting my computer)
|
by: Joachim Dahl |
last post by:
I am trying to make a customized install script for an extension module
using the distutils.ccompiler class.
I want to embed an existing makefile for the C libraries into the Python
setup script, but I am not sure what's the right way to do it...
E.g., say I want to compile a project as:
gcc -Ddef1 -c foo.c -o foo_def1.o
gcc -Ddef2 -c foo.c -o foo_def2.o
|
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: Usenet User |
last post by:
I need to be able to call the same API function from VB, which will
reside in different DLLs. While all of the functions have the same
signature and name, DLL file names are not known at compile time.
Therefore, my assumption that using Declare statement or DllImport
attribute is NOT an option in such a case.
I can use LoadLibrary() and GetProcAddress() from Kernel32 to get the
addreses, but is there a way to actually call an API method...
|
by: Mark Asbach |
last post by:
Hi pythonians,
I'm one of the maintainers of an open source image processing toolkit
(OpenCV) and responsible for parts of the autotools setup. The package
mainly consists of four shared libraries but is accompanied by a python
package containing some pure python code and of course extension modules
for the four libraries.
Now during the last month we were preparing a major release which means
testing, fixing, testing, fixing, ... in...
|
by: bgold12 |
last post by:
I know I asked this a few days ago, but I didn't really get a
satisfactory answer, and I know the people in this group are better
than that...
Is there a .dll file I can download for the BBCode extension? That
would
make things really easy for me. If not, can someone please explain how
to compile the C source (downloaded from http://pecl.php.net/package/bbcode)
into a .dll using Microsoft VC++? Thanks.
|
by: noobermin |
last post by:
An extension I used uses some other functions i made (outside of the sources used by the extension itself), but it complains about them upon import as being undefined symbols.
>>> import libpytwo2gam
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: ./libpytwo2gam.so: undefined symbol: twoll_linearsearch
>>>
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |