Making a python package and cross-platform compatible


 
Thread Tools Search this Thread
Operating Systems Linux Debian Making a python package and cross-platform compatible
# 1  
Old 10-14-2013
Making a python package and cross-platform compatible

Hi Ive been trying for days now and i just cannot work this out.

Can someone please tell me if im doing this right.

I've written some python3.3 code and now i want to transfer it to an embedded computer to execute.

My OS is a : Debian GNU/Linux 6.0.7 (squeezez) 32-bit kernel
Compiler gcc 4.4.4 and gcc 4.4.5


The target computer is : Linux 2.6.9 32bit cpu.
Compiler gcc 3.3.2

So i have the .py files. I install cx_freeze with python3.3.

I then use cxfreese file.py, which create a folder called dist with a bunch of files and a executable.

Now from my understanding everything it needs to run is inside that folder?
So how come when i transfer over to the target computer it says " cannot execute binary file"

is this todo with them haveing diffrent compilers? how do i update the target computers compiler when there is no apt-get or dpkg facility?

Please someone save Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Making a python package and cross-platform compatible

Hi Ive been trying for days now and i just cannot work this out. Can someone please tell me if im doing this right. I've written some python3.3 code and now i want to transfer it to an embedded computer to execute. My OS is a : Debian GNU/Linux 6.0.7 (squeezez) 32-bit kernel The... (1 Reply)
Discussion started by: RedEyedDog
1 Replies

2. UNIX for Dummies Questions & Answers

Really simple cross-platform database?

I'm looking for a really simple to use lightweight database. Ideally something open-source that stores data in a (semi-) human-readable format, in case the software isn't working. Something cross-platform enough that I can use it on my Linux machine, my Mac, or stick it on a USB stick and... (2 Replies)
Discussion started by: emdan
2 Replies

3. Shell Programming and Scripting

making code compatible to previous bash versions

First let me explain the scenario I have tywo files as usual file1.txt (it has n rows and 8 columns) $1 $2 $3 $4 $5 $6 $7 $8 Code: 1234567|iufgt|iuoy|iout|white |black |red |90879 1234567|iufgt|iuoy|iout|green |pink |blue |90879... (3 Replies)
Discussion started by: s.deepak
3 Replies

4. Shell Programming and Scripting

configuring packages for cross-platform build

Hi all, I wish to build a few packages for my embedded target running linux over ARM9. It would be tough for me to compile my packages on target so I need to build on a host machine and then transfer the generated binaries. So I got the source-tarball for the packages I need. Now here are my two... (0 Replies)
Discussion started by: Rakesh Ranjan
0 Replies

5. UNIX for Advanced & Expert Users

Cross platform Authentication

I am looking to have UNIX authenticate against Active Directory in a Windows Server 2003 environment, any suggestion? I am very new to UNIX, 2 weeks worth knowledge, if that. Thanks! (3 Replies)
Discussion started by: Optik
3 Replies
Login or Register to Ask a Question
PYCENTRAL()															       PYCENTRAL()

NAME
pycentral - register and build utility for Python packages SYNOPSIS
pycentral [-h] [-v] <cmd> [<cmd options>] [<args>] DESCRIPTION
pycentral provides support for installing python modules independent of the current installed Python version and handling byte-compilation and -removal tasks in installation scripts. OPTIONS
-v, --version Limit the output to the version numbers of the python versions. -h, --help Print a help text. pycentral has the following sub commands. For fine grained help, call: pycentral <cmd>. bccompile Byte compile .py files in a package. bcremove Remove the byte compiled .py files. list List all managed files. pkginstall Make a package available for all supported runtimes. pkgprepare Prepare a package for all supported runtimes. pkgremove Remove a package installed for all supported runtimes. pkglist List pycentral-managed files of a package for all supported runtimes. rtinstall Make installed packages available for this runtime. rtremove Remove packages installed for this runtime. updatedefault Update the default python version. debhelper move files to pycentral locaation, variable substitutions (called by dh_pycentral). pycentraldir <package> Show the installation directory used by pycentral for <package>. showdefault Show default python version number. Deprecated, use pyversions(1) showsupported Show the supported python versions. Deprecated, use pyversions(1) showversions Show version numbers of supported python versions. Deprecated, use pyversions(1) dh_pycentral, should not be called directly). version Show the pycentral version. FILES
/etc/python/debian_config is searched for the attribute overwrite-local. If set to 1, or True, existing files in /usr/lib/pythonX.Y/*-packages are overwritten with symbolic links to the pycentral install area. The default is to abort the installation of a package, when files already exist. This behaviour may be useful, when python libraries were manually installed into this directory. The attribute byte-compile can be set to a comma separated list of the values standard and optimze to indicate how files should be byte- compiled. SEE ALSO
pyversions(1), Python policy. AUTHOR
Matthias Klose PYCENTRAL()