Hi,

We're building a package for Ubuntu 12.04 with some Python3.4 code.
For this, we needed to install Python 3.4.3 from source :
mkdir Python
cd ~/Python/
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar -xf Python-3.4.3.tar.xz
cd Python-3.4.3/
less README
./configure --prefix=/opt/python3.4
make
make test
sudo make install

After that we created the venv used for the project :
cd ~/project
rm -rf venv_py3/
/opt/python3.4/bin/pyvenv venv_py3
. venv_py3/bin/activate
pip install --upgrade pip

We tried to install cx_Freeze with pip ... but no success :(
pip install cx_freeze
[...]
     gcc -pthread build/temp.linux-x86_64-3.4/source/bases/Console.o 
-L/opt/python3.4/lib/python3.4/config-3.4m -lpython3.4 -o 
build/lib.linux-x86_64-3.4/cx_Freeze/bases/Console -Xlinker -export-dynamic 
-lpthread -ldl -lutil -lm -s
     /usr/bin/ld: cannot find -lpython3.4
     collect2: ld returned 1 exit status
     error: command 'gcc' failed with exit status 1
     ----------------------------------------
Command "/home/bancal/project/venv_py3/bin/python3.4 -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-f85zq1b7/cx-freeze/setup.py';exec(compile(getattr(tokenize,
 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-oq5lxldy-record/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/home/bancal/project/venv_py3/include/site/python3.4/cx-freeze" failed with 
error code 1 in /tmp/pip-build-f85zq1b7/cx-freeze

We tried again but compiling cx_Freeze by hand: Same error occured :(
cd
wget 
https://pypi.python.org/packages/source/c/cx_Freeze/cx_Freeze-4.3.4.tar.gz#md5=5bd662af9aa36e5432e9144da51c6378
tar -xf cx_Freeze-4.3.4.tar.gz
cd cx_Freeze-4.3.4/
less README.txt
python setup.py build
[...]
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-3.4 
-I/home/bancal/project/venv_py3/include -I/opt/python3.4/include/python3.4m -c 
source/bases/Console.c -o build/temp.linux-x86_64-3.4/source/bases/Console.o
gcc -pthread build/temp.linux-x86_64-3.4/source/bases/Console.o 
-L/opt/python3.4/lib/python3.4/config-3.4m -lpython3.4 -o 
build/lib.linux-x86_64-3.4/cx_Freeze/bases/Console -Xlinker -export-dynamic 
-lpthread -ldl -lutil -lm -s
/usr/bin/ld: cannot find -lpython3.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Does anyone know how to set up cx_Freeze on a Python 3.4.3 installed by hand?
Do we need to ./configure Python with extra arguments?
Do we need to pass extra arguments to cx_Freeze setup?

Thanks,
Samuel Bancal

-- 
Samuel Bancal
ENAC-IT
EPFL


------------------------------------------------------------------------------
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to