Pip with fake computer architecture (instead of 64-bit 64-bit)

I host a Django site on a server where I only have FTP access. The server has a 64-bit architecture, my computer has a 32-bit architecture. For some modules, such as MySQL-python, architecture is important.

Is there a way to create a directory of package sites from mine requirements.txton my personal computer that is suitable for the server? I think it would be necessary to somehow fake the architecture for pip.

And ... Yes. I have access to some 64-bit machines. But for a good workflow, it would be better to have everything on my personal computer.

+4
source share
2 answers

What you ask for is much more complicated than you think.

Many libraries, including MySQLdb, contain C extension code that must be compiled for the target system. If you compile them to run on your system, they will not work on the target system. That means you need a cross compiler.

They should also be linked to Python libraries that exist on the target system, not systems. And they will almost always need the headers and configuration files that come with these libraries.

Most of these libraries have other dependencies - in this case, you will almost certainly need libmysql from the target system, and not the one located on your system, and, of course, the headers and configuration files that come with this.

, pip, distutils/setuptools, , .. .

, - Python.

Google python, , , , . , , , , ( , , distribute setuptools, ), , , , .


, , . .

. 64- , , virtualbox VMware, 64- Linux 32-. , , -dev/-devel/whatever, .

32-, , , OS X, Linux, , , , , , . , .

+4

VM

virtualbox 64-.

( ), , . .

, . .

virtualenv

, , - . . !

+5

All Articles