473,406 Members | 2,954 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,406 software developers and data experts.

Any Software can Python <-> Delphi ?

Any Software can change Python source code to Delphi ?
thx
--


Jul 18 '05 #1
3 2628
ac*****@easystreet.com writes:
Joe Francia wrote:

PythonMan wrote:
> Any Software can change Python source code to Delphi ?
> thx
>


You might find an easier time of it to embed your Python in Delphi, or,
even better, write a Python extension with Delphi:

http://www.atug.com/andypatterns/pythonDelphiTalk.htm
http://membres.lycos.fr/marat/delphi/python.htm


Anyone have any ideas about how to package one of these pythondelphi
apps to be easy to deploy and be convenient to the end user? I'm
guessing that since python isn't on top, McMillan's installer and
py2exe won't handle it.


You could write a small, fake module importing the stuff that the
library needs. If you then run py2exe with the -k (--keep-temp) option,
it doesn't delete its own build tree. You will find there a xxx.zip
file, containing all the modules needed (plus a few scripts which you
can ignore). If you use Python 2.3, just add the zip-file's name to
sys.path, and you are done.

Thomas
Jul 18 '05 #2
Joe Francia wrote:
PythonMan wrote:
Any Software can change Python source code to Delphi ?
thx


You might find an easier time of it to embed your Python in Delphi, or,


Beats me that people keep trying to achieve (necessarily idiomatic)
machine translation of human languages, while the (clearly easier)
problem of idiomatically translating between computer languages
looks too hard for serious attention.

Jul 18 '05 #3
"Thomas Heller" <th*****@python.net> wrote in message
news:ad**********@python.net...
ac*****@easystreet.com writes: You could write a small, fake module importing the stuff that the
library needs. If you then run py2exe with the -k (--keep-temp) option,
it doesn't delete its own build tree. You will find there a xxx.zip
file, containing all the modules needed (plus a few scripts which you
can ignore). If you use Python 2.3, just add the zip-file's name to
sys.path, and you are done.


That's what I need too, thanks for posting this info.

I have an DLL that embeds and extends Python23.dll, but I want to package up
all the "standard python .py" as .pyo files in a zip and I'm looking for an
easy way to resolve imports. This looks like it will get me most of the way
there!

Jul 18 '05 #4

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

Similar topics

2
by: Josh | last post by:
I've been trying to get Tix running with Python on Windows. Since there is no binary distributions of Tix for Windows, it seems the easiest way to install Tix is through IDiscovery's IDEStudio 1.9...
11
by: Maxim Khesin | last post by:
Hi, being recently introduced to the joys of programming in a powerful dynamic language (go snake!) I periodically rethink which parts of C++ I still miss. One thing I really enjoy is the generics...
0
by: Heiko Wundram | last post by:
Hi all, esp. list admins! Why is it that I always get bounces saying my mails have suspicious headers lately when I post to python-list? This only happens when I reply to myself (as I just did,...
2
by: threeseas | last post by:
Because the project is done in python and in support of FOSS http://msdn.microsoft.com/architecture/overview/softwarefactories/default.aspx?pull=/library/en-us/dnmaj/html/aj3softfac.asp ...
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
8
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating...
6
by: Gonzalo Monzón | last post by:
Hi all! I have been translating some Python custom C extension code into Python, as I need these modules to be portable and run on a PocketPC without the need of compile (for the purpose its a...
191
by: Xah Lee | last post by:
Software Needs Philosophers by Steve Yegge, 2006-04-15. Software needs philosophers. This thought has been nagging at me for a year now, and recently it's been growing like a tumor. One...
1
by: yichun.wei | last post by:
Perl has the ability to do the following: print <<EOF; ...reams of text goes here... EOF Is there a Python equivalent of the above Perl code? This thread has previous discussion on the...
23
by: Python Maniac | last post by:
I am new to Python however I would like some feedback from those who know more about Python than I do at this time. def scrambleLine(line): s = '' for c in line: s += chr(ord(c) | 0x80)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
jinu1996
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...
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,...
0
isladogs
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...

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.