473,544 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

add re module to a embeded device phyton interpreter

I hav to add the re (regular expressions) functionality to an
Embeded device that I'm using. I read the re.py file and it says I
need several dependencies, one of them is the pcre module but I found
no pcre.py or pcre.pyc file. Someone knows where to find something to
solve my problem. Thanks a lot

Jan 10 '07 #1
1 1181
odlfox wrote:
I hav to add the re (regular expressions) functionality to an
Embeded device that I'm using. I read the re.py file and it says I
need several dependencies, one of them is the pcre module but I found
no pcre.py or pcre.pyc file. Someone knows where to find something to
solve my problem. Thanks a lot
that drills down to a .dll/.so thing depending on installation and python version.

Best make a project/test/dummy script using all the things you want - or actually your project as it.
And then use cx-freeze like "FreezePyth on -OO mystart.py" to let him collect all the dependent modules in a dist-folder. Then you don't have to worry about all the details yourself.
You can also use UPX and 7zip to further compress the dll's/so's and the py-modules zip archive well.
Jan 10 '07 #2

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

Similar topics

by: P.C. | last post by:
Hi My son like many youngsters been around computers, fast online games, he acturly for main part learned to read and write ,beside his second language english , and may I say he is quite good at it age 15 , but as some of you know, 3D games also offer edditors and script options , or rather programming choppers and dust clouds in scenes....
by: Ilariu Raducan | last post by:
Hi All, In embeded python, is it possible to add functions to a module after initialization with Py_InitModule? I don't know the function names and implementation of them at the compile time. At run time I want to load them from some shared libraries and bind them to a module. I know in pure python that is possible, so I think it should be...
by: Torsten Mohr | last post by:
Hi, i write an extension module in C at the moment. This module does some work on some own data types that consist of some values. The functions that can change the data are written in C. The question came up if this is by itself thread safe, if some two or more threads try to change these data types, are the C functions by themselves...
by: Andrew E | last post by:
Hi all I've written a python program that adds orders into our order routing simulation system. It works well, and has a syntax along these lines: ./neworder --instrument NOKIA --size 23 --price MARKET --repeats 20 etc However, I'd like to add a mode that will handle, say:
by: Thomas Heller | last post by:
I'm using the code module to implement an interactive interpreter console in a GUI application, the interpreter running in a separate thread. To provide clean shutdown of the application, I have to make sure that objects used in the interpreter thread are deleted when the thread ends. I delete the sys.last_type, sys.last_value, and...
by: jdlists | last post by:
I have inheirted some existing code, that i will explain in a moment, have needed to extend and ultimately should be able to run in threads. I've done a bunch of work with python but very little with threads and am looking for some pointers on how to implement, and if the lower level modules/objects need to be rewritten to use threading.local...
by: gslm | last post by:
Hi! I'm too new on phyton.I have installed phyton.But when I write phyton command, unfortunately, i can't run.I suppose that it is bacause of setting path.But i can't solve. Can you help? Another thing is, when i double click the .py file, there are the project form and the command line.How can i provide to view only the project?...
by: Peter J. Bismuti | last post by:
I'm having trouble understanding how namespaces work in modules. I want to execute a module within the interpreter and then have values that are calculated persist so that other modules that get executed can retrieve them. For example, consider the two simple modules below. The first method fails and I'm not sure exactly why. (Note: ...
by: mostro713 | last post by:
Hi all, Can someone point me in the right direction? I'm looking for a module to monitor the Windows Event Viewer. Thanks
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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. ...
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...
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...
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...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
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: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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...

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.