[Distutils] How to add GDAL as a dependency to a Python package

2016-04-12 Thread Luí­s de Sousa via Distutils-SIG
Dear all, I am trying to package a Python script for PyPI that uses GDAL. I started by including a direct reference in my setup.py: install_requires=['GDAL==1.11.2'], This way the package failed to install in my test virtual environment: extensions/gdal_wrap.cpp:2855:22: fatal error: cpl_port

Re: [Distutils] How to add GDAL as a dependency to a Python package

2016-04-13 Thread Luí­s de Sousa via Distutils-SIG
Thank you for the reply Chris. I just tried to install pygdal directly from PiPY on a stock Ubuntu distribution and it fails [0], even if I supposedly have all the necessary headers installed. I will try easier ways before going with Conda, but thanks for the suggestion in any case. Luís [0]

Re: [Distutils] How to add GDAL as a dependency to a Python package

2016-04-14 Thread Luí­s de Sousa via Distutils-SIG
Thank you all for the replies. I have tried various tests on Ubuntu, and even installing numpy beforehand, apt has to come into play at some point (as has sudo). I guess it is simpler to leave dependencies up to the user. And perhaps provide a package hooked up to python-dev and python-gdal in

[Distutils] 'Invalid module name' creating package with setuptools

2016-04-14 Thread Luí­s de Sousa via Distutils-SIG
Hi everyone, I have a project with these contents: proj ├── proj │ ├── scriptA.py │ ├── scriptB.py │ └── __init__.py ├── LICENCE ├── README.md └── setup.py The setup.py file looks like: #!/usr/bin/python3 # coding=utf8 from setuptools import setup setup( name = "proj", version = "0.2", packag

Re: [Distutils] 'Invalid module name' creating package with setuptools

2016-04-14 Thread Luí­s de Sousa via Distutils-SIG
tonmail.ch), encrypted email based in Switzerland. Original Message Subject: Re: [Distutils] 'Invalid module name' creating package with setuptools Local Time: April 15, 2016 8:24 AM UTC Time: April 15, 2016 6:24 AM From: mar...@gedmin.as To: distutils-sig@python.o

Re: [Distutils] 'Invalid module name' creating package with setuptools

2016-04-14 Thread Luí­s de Sousa via Distutils-SIG
Hi Alex, Could you please detail the steps you took to get this setup.py file to work? There is no other in this project. Thank you, Luís Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland. Original Message Subject: Re: [Distutils] 'Invali

[Distutils] PyPi upload fails with TypeError

2016-05-20 Thread Luí­s de Sousa via Distutils-SIG
Dear all, I am trying to upload a new package to PyPi with this command: $ python3 setup.py sdist upload The process seems to go on well until the running upload bit, at which point I get this exception: Traceback (most recent call last): File "setup.py", line 33, in "Topic :: Scientific/Engi

Re: [Distutils] PyPi upload fails with TypeError

2016-05-20 Thread Luí­s de Sousa via Distutils-SIG
The TypeError is about the *last* line in the traceback: One of `self.username' or 'self.password' is set to 'None'. That being the case, how can I correct the bug? Must I upgrade setuptools? Or some other package? Thank you, Luís___ Distutils-SIG mai

Re: [Distutils] PyPi upload fails with TypeError

2016-05-24 Thread Luí­s de Sousa via Distutils-SIG
Hi there Ian. Twine is also failling, apparently it can not find setup tools, please check the log below. Cheers. $ twine upload dist/hex-utils-0.2.sdist Traceback (most recent call last): File "/usr/bin/twine", line 9, in load_entry_point('twine==1.5.0', 'console_scripts', 'twine')() File "/us

Re: [Distutils] PyPi upload fails with TypeError

2016-06-01 Thread Luí­s de Sousa via Distutils-SIG
Hi again Ian, Installing setuptools for python 3 dealt away with that error but the upload is still failing. I am not sure this is related to twine or not, but I'll leave here the log in any case, someone might suggest something. Thank you, Luís $ python3 setup.py sdist running sdist running

Re: [Distutils] PyPi upload fails with TypeError

2016-06-02 Thread Luí­s de Sousa via Distutils-SIG
Yes Chris, that is correct. But note that I am using the sdist option both with setuptools and twine. Thank you, Luís Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland. Original Message Subject: Re: [Distutils] PyPi upload fails with Type

Re: [Distutils] PyPi upload fails with TypeError

2016-06-02 Thread Luí­s de Sousa via Distutils-SIG
Hi everyone, I got it working (sort of) on Ubuntu 14.04. I had pip installed from the Ubuntu repositories and that package marks as dependencies a number of other packages that are largely outdated. Apparently, these outdated packages (e.g. requests) where embroiling twine. The first step was