With distutils, "optional" C extension module error is fatal

2019-12-29 Thread Dan Stromberg
Hi folks. I'm putting a little time into getting my treap module (like a dict, but always sorted by key) working with distutils. I want it to be able to compile and install the Cython version from an included .c file, or to fall back on a pure python version if that fails. I'm curre

Distutils - bdist_rpm - specify python interpretter location

2019-10-30 Thread Ian Pilcher
I am trying to use Distutils "bdist_rpm" function on Fedora 30. It is failing, because Fedora does not provide a "python" executable; it provides /usr/bin/python2 and /usr/bin/python3. The error message is: env: 'python': No such file or directory error: Bad

Is distutils deprecated?

2019-01-05 Thread אורי
Is `distutils` deprecated or about to be deprecated? https://github.com/python-pillow/Pillow/issues/3547 אורי (Uri) u...@speedy.net -- https://mail.python.org/mailman/listinfo/python-list

Re: SWIG+Distutils - no harmony?

2018-07-07 Thread ruifernqq
Em terça-feira, 15 de janeiro de 2002 21:26:05 UTC+1, Martin Bless escreveu: > Getting courageous I try building 'example.pyd' > from the SWIG 'Simple Example' using SWIG and the Distutils. > Looks promising but doesn't succeed. I didn't > modify

Swig and distutils

2017-08-29 Thread Оlе Ѕtrеісhеr
n't find a distutils bug or a discussion why this is not changed (the problems seems to be already >5 years old). Is there a rationale behind the current behauviour? And shouldn't that documented in the Python distutils documentation? [1] is very misleading here then. I have another problem

[Distutils] ANNOUNCE: Sunsetting of uploading to the legacy PyPI/TestPyPI

2017-06-22 Thread breamoreboy
Things are moving on in the pypi world https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html -- Kindest regards. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-09 Thread ddbug
I am a Python beginner but would like to contribute $0.02 in absence of authoritative answers (thanks Tim J. for encouragement). After researching this topic for a while, it looks like they now recommend distributing wheels rather than sdist's. For Windows thus is reasonable, given that there i

Re: What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-08 Thread Tim Johnson
* Ivan Pozdeev via Python-list [161106 17:28]: > https://wiki.python.org/moin/WindowsCompilers has now completely replaced > instructions for `distutils`-based packages (starting with `from > distutils.core import setup`) with ones for `setuptools`-based ones > (starting with `fro

What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-06 Thread Ivan Pozdeev via Python-list
https://wiki.python.org/moin/WindowsCompilers has now completely replaced instructions for `distutils`-based packages (starting with `from distutils.core import setup`) with ones for `setuptools`-based ones (starting with `from setuptools import setup`). However, if I have a `distutils`-based

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Joseph Bane
er 0 or 1: >> >> https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 >> >> I am curious why this is the defined behavior and whether anyone can >> fill me in regarding this approach. For clarity, I would expect the >> code to `return True` and `ret

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Terry Reedy
On 8/9/2016 9:22 AM, Joseph Bane wrote: Hello. It recently came to my attention that the strtobool function in the standard library doesn't return Python native boolean values, but rather returns integer 0 or 1: https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 I am cu

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Michael Selik
g. On Tue, Aug 9, 2016 at 9:34 AM, Michael Selik wrote: > On Tue, Aug 9, 2016 at 9:26 AM Joseph Bane wrote: >> >>> Hello. >>> >>> It recently came to my attention that the strtobool function in the >>> standard library doesn't return Python na

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Joseph Bane
recently came to my attention that the strtobool function in the >> standard library doesn't return Python native boolean values, but rather >> returns integer 0 or 1: >> >> https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 >> >> I am curious why

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Lutz Horn
Am 08/09/2016 um 03:22 PM schrieb Joseph Bane: It recently came to my attention that the strtobool function in the standard library doesn't return Python native boolean values, but rather returns integer 0 or 1: In boolean context, 1 is True and 0 is False. So you should be able to use the res

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Joseph Bane
n native boolean values, but rather > > returns integer 0 or 1: > > > > https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 > > > > I am curious why this is the defined behavior and whether anyone can fill > > me in regarding this approach. For clarity, I wo

Re: Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Michael Selik
On Tue, Aug 9, 2016 at 9:26 AM Joseph Bane wrote: > Hello. > > It recently came to my attention that the strtobool function in the > standard library doesn't return Python native boolean values, but rather > returns integer 0 or 1: > > https://hg.python.org/cpython/file

Question regarding stdlib distutils strtobool behavior

2016-08-09 Thread Joseph Bane
Hello. It recently came to my attention that the strtobool function in the standard library doesn't return Python native boolean values, but rather returns integer 0 or 1: https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 I am curious why this is the defined behavio

distutils error ?

2015-08-16 Thread garyr
I tried building the spammodule.c example described in the documentation section "Extending Python with C or C++." As shown the code compiles OK but generates a link error: LINK : error LNK2001: unresolved external symbol init_spam build\temp.win32-2.7\Release\_spam.lib : fatal error LNK1120: 1 un

Re: [Distutils] Release: pip 6.0 and virtualenv 12.0

2014-12-23 Thread Terry Reedy
On 12/23/2014 12:27 PM, Mark Lawrence wrote: I chanced upon this https://mail.python.org/pipermail/distutils-sig/2014-December/025450.html via twitter and thought it would be of interest here. I'll assume that by the time I hit 'Send' it'll have arrived on the announ

[Distutils] Release: pip 6.0 and virtualenv 12.0

2014-12-23 Thread Mark Lawrence
I chanced upon this https://mail.python.org/pipermail/distutils-sig/2014-December/025450.html via twitter and thought it would be of interest here. I'll assume that by the time I hit 'Send' it'll have arrived on the announcements mailing list :) -- My fellow Pythonist

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-20 Thread Paul Moore
On 20 November 2014 13:31, holger krekel wrote: > Thanks Paul for going through this! Looking forward to the link/code. Cheers - it's not forgotten, but real life's being a nuisance, so it's on the back burner for a short while. I'll try to get something done in a few weeks. Paul -- https://mai

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-20 Thread holger krekel
le such use may be possible, I probably won't consider it as > supported. Thanks Paul for going through this! Looking forward to the link/code. holger > Thanks again, > Paul > ___ > Distutils-SIG maillist - distutils-...@python.or

RE: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-10 Thread Steve Dower
Ben Finney wrote: > Steve Dower writes: >> Ben Finney wrote: >> > The restrictions of the license terms make MS Windows an >> > unacceptable risk on any machine I'm responsible for. >> >> Just out of interest, which restrictions would those be? > > It has been a long time since I bothered to read

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 17:42, Ben Finney wrote: >> Does this prevent you from creating a VM on a cloud provider on your >> own account? > > If I need to accept restrictions such as the above, I don't see that the > location of the instance (nor the fees charged) has any affect on these > concerns. The

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 17:17, Ben Finney wrote: > Paul Moore writes: > >> On 7 November 2014 16:52, Ben Finney wrote: >> > If I was required to provide packages for MS Windows, the only viable >> > solutions would be those that don't involve me obtaining an MS Windows >> > instance myself. >> >> For

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Paul Moore
On 7 November 2014 16:52, Ben Finney wrote: > If I was required to provide packages for MS Windows, the only viable > solutions would be those that don't involve me obtaining an MS Windows > instance myself. For that usage, an Amazon EC2 AMI sounds ideal, as the license costs are covered by the A

RE: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Steve Dower
Ben Finney wrote: > Paul Moore writes: > >> To that end, I'd like to get an idea of what sort of access to Windows >> a typical Unix developer would have. […] Ideally, a clean Windows 7 or >> later virtual machine is the best environment, but I don't know if >> it's reasonable to assume that. >

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Wichert Akkerman
> On 07 Nov 2014, at 16:46, Paul Moore wrote: > > I'm in the process of developing an automated solution to allow users > to quickly set up a Windows box so that it can be used to compile > Python extensions and build wheels. While it can obviously be used by > Windows developers who want to qui

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Donald Stufft
would be extremely useful. I'm at a point where I can > pretty easily set up any of these options, but if they don't turn out > to actually be usable by the target audience, it's a bit of a waste of > time! :-) > > Thanks, > Paul > ____

C++ extension and shared library with distutils

2014-10-28 Thread Wintersberger, Eugen
.py _b.so libb_utils.so with header files for libb_utils.so in $PREFIX/include/pythonX.Y/A/B/ My hope is that I can do all this with distutils. Building and installing the extension is trivial. But 1.) is there a better way to build a shared library with distutils than using the

Re: [Distutils] [ANN]: distlib 0.1.9 released on PyPI

2014-05-19 Thread Paul Moore
On 19 May 2014 15:24, Vinay Sajip wrote: > Fixed issue #47: Updated binary launchers to fix double-quoting bug > where script executable paths have spaces. Note that this issue affects pip / virtualenv in that creating a virtualenv in a path with spaces can result in pip not working in th

patch for making distutils cross compile on win32

2013-12-17 Thread Robin Becker
I have struggled to get Python-3.3.3 distutils to cross compile win-amd64 on win32. For the specific command (bdist_wininst) I am using the patch below seems to fix things so I can build amd64 binaries on win32. The code seems a bit schizophrenic about whether this is supposed to work, but

Re: Adding new source types to distutils?

2013-04-28 Thread Devin Jeanpierre
more complex Extension configurations that > Cython doesn't have to care about. > > You might want to do something similar in your case. It gives users much > more flexibility when using source code preprocessors and also avoids > conflicts between packages like the one you descri

Re: Adding new source types to distutils?

2013-04-28 Thread Stefan Behnel
re's a new source type I want to handle (.rc and .rs), and > also tell distutils that it should handle it by running the code that > I specify (which can compile the .rs/.rc files, remove them from the > sources list, and add the resulting object files and such to the > linker arguments)

Adding new source types to distutils?

2013-04-28 Thread Devin Jeanpierre
Last night I wrote a toy prototype module that lets one compile Rust crates into extension modules for Python. The problem is, I don't know the "right" way to do this. Ideally I'd just want to tell build_ext that there's a new source type I want to handle (.rc and .rs)

distutils and libraries

2013-04-23 Thread Nick Gnedin
CMake or distutils. CMake builds the module properly, finding all dependencies, and when I install it manually, everything works just fine - but then the problem is that it has to be installed manually. With distutils, when I use module1 = Extension('ifrit', librarie

How to install/uninstall manpages with distutils/setuptools?

2013-04-13 Thread Santosh Kumar
with no problem (to /usr/bin/). But I can't install the manpage to /usr/share/man/man1/. That is why I created installation of manpages in my setup.py. So with the installation of manpages my installation is complete. But the problem is I can't uninstall the manpages with `pip uninstall s

Re: Fwd: Re: distutils without a compiler

2013-04-05 Thread Colin J. Williams
On 04/04/2013 9:30 PM, Colin J. Williams wrote: Original Message Subject: Re: distutils without a compiler Date: Tue, 02 Apr 2013 16:26:59 -0700 From: Ned Deily To

Re: distutils without a compiler

2013-04-02 Thread Ned Deily
In article <515aa9bf.4010...@chamonix.reportlab.co.uk>, Robin Becker wrote: > Is there a neat way to get distutils to report compiler absence? Most windows > users don't have a compiler so building extensions usually doesn't work. > > However, python's builti

distutils without a compiler

2013-04-02 Thread Robin Becker
Is there a neat way to get distutils to report compiler absence? Most windows users don't have a compiler so building extensions usually doesn't work. However, python's builtin batteries would allow pre-built pyds to be downloaded in lieu of an actual build. Has anyone cre

Re: pip and distutils

2013-02-02 Thread Kwpolska
On Mon, Jan 28, 2013 at 10:31 PM, Vraj Mohan wrote: > I have created a source distribution using distutils which specifies > external packages using: > > setup( > ..., > requires = ['Foo (>= 0.7)', 'Bar (>= 2.4.5)'], > .

Re: [Distutils] A new script which creates Python 3.3 venvs with Distribute and pip installed in them

2013-01-31 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 9:09 PM, Vinay Sajip wrote: > Python 3.3 includes a script, pyvenv, which is used to create virtual > environments. > However, Distribute and pip are not installed in such environments - because, > though they are popular, they are third-party packages - not part of Python

pip and distutils

2013-01-28 Thread Vraj Mohan
I have created a source distribution using distutils which specifies external packages using: setup( ..., requires = ['Foo (>= 0.7)', 'Bar (>= 2.4.5)'], ... ) When I use pip to install this distribution, I find that it does not automatically in

Splitting large packages with distutils

2012-10-30 Thread Joost Molenaar
OK. But when I run pip uninstall for ingredients.spam, it also removes the source files for ingredients and ingredients.eggs. That seems a bit wrong, but maybe I'm using distutils/pip/setuptools the wrong way. I found out that if I modify top_level.txt in each of the egg-info directories that ar

Re: distutils bdist_wininst failure on Linux

2012-08-06 Thread Bob Bowles
Steven D'Aprano-11 wrote > > And I have a work-around that seems to work for me. Put this at the top > of your setup.py install script: > > > > # Work around mbcs bug in distutils. > # http://bugs.python.org/issue10945 > import codecs > try: > code

Re: distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-07-01 Thread Mero
On 26/06/2012 23:24, KACVINSKY Tom wrote: > I have need for a distutils that supports msvc10, and which can be > back-fitted into Python 2.6. Is there such a beast? One trick I found was to define an environment variable *VS90COMNTOOLS* that points to the actual VS2010 lo

distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-06-26 Thread KACVINSKY Tom
Hi, I have need for a distutils that supports msvc10, and which can be back-fitted into Python 2.6. Is there such a beast? Thanks in advance, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or

Generating a pkg config file with distutils

2012-03-27 Thread Tycho Andersen
i.e., .pc files must be installed to the above location to be correctly detected by other packages). Is what I want to do possible, or should I continue using my nasty hack? TIA! Tycho [1]: http://docs.python.org/distutils/sourcedist.html#commands -- http://mail.python.org/mailman/listinfo/python-list

Question about python 3.2 distutils

2012-03-16 Thread Collin Day
Hi all, I have a question about python 3.2 distutils on a Gentoo amd64 system. When I open an ipython session and import distutils.unixcompiler and then check the shared library extension with UnixCCompiler.shared)lib_extension, it returns '.so', as I would expect. When I run a s

Re: Python packaging usabilty (distutils) - automatic downloading required packages

2012-02-25 Thread Stefan Behnel
XLiIV, 25.02.2012 15:47: > There is many packaging solutions for python. > I was confused about that but it's nothing. I had to pick one of them. > I picked distutils because it's part of standard python since 3.3, am > i right? Distutils has been part of Python's stdl

Python packaging usabilty (distutils) - automatic downloading required packages

2012-02-25 Thread XLiIV
There is many packaging solutions for python. I was confused about that but it's nothing. I had to pick one of them. I picked distutils because it's part of standard python since 3.3, am i right? My goal is to write setup.py with this feature: 'download required package if not in

Re: distutils bdist_wininst failure on Linux

2012-02-23 Thread Steven D'Aprano
On Fri, 24 Feb 2012 00:11:11 +, Steven D'Aprano wrote: > On Thu, 23 Feb 2012 07:09:35 -0800, jmfauth wrote: > >> On 23 fév, 15:06, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote: >>> Following instructions here: >>> >>> http:/

Re: distutils bdist_wininst failure on Linux

2012-02-23 Thread Steven D'Aprano
On Thu, 23 Feb 2012 07:09:35 -0800, jmfauth wrote: > On 23 fév, 15:06, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> Following instructions here: >> >> http://docs.python.org/py3k/distutils/builtdist.html#creating- windows... >> >> I am t

Re: distutils bdist_wininst failure on Linux

2012-02-23 Thread jmfauth
On 23 fév, 15:06, Steven D'Aprano wrote: > Following instructions here: > > http://docs.python.org/py3k/distutils/builtdist.html#creating-windows... > > I am trying to create a Windows installer for a pure-module distribution > using Python 3.2. I get a "LookupE

distutils bdist_wininst failure on Linux

2012-02-23 Thread Steven D'Aprano
Following instructions here: http://docs.python.org/py3k/distutils/builtdist.html#creating-windows-installers I am trying to create a Windows installer for a pure-module distribution using Python 3.2. I get a "LookupError: unknown encoding: mbcs" Here is the full output of distuti

distutils + mercurial good practice question

2012-02-22 Thread Steven D'Aprano
distutils generates a number of files automatically in my projects, including MANIFEST, build/* and dist/* Is there any reason why I would want or need to track them in mercurial? I currently have this .hgignore file: syntax: glob *.pyc *~ exclude/* build/* dist/* MANIFEST Good practice or

Re: Generating a .pc file using distutils

2012-02-12 Thread Dave Angel
ven a .pc.in or similar) using distutils? If there's not, is there a good way to access whatever the user passes in as --prefix (besides parsing sys.argv yourself)? Thanks, \t Bumping a message (especially using top-posting) seldom does much good unless you also supply some more information

Re: Generating a .pc file using distutils

2012-02-12 Thread Tycho Andersen
Just re-bumping this - I am fiddling with this code again and it's gross, so any input would be greatly appreciated :-) \t On Mon, Jan 23, 2012 at 05:31:20PM -0600, Tycho Andersen wrote: > Is there some standard way to generate a .pc file (given a .pc.in or > similar) using distuti

Generating a .pc file using distutils

2012-01-23 Thread Tycho Andersen
Is there some standard way to generate a .pc file (given a .pc.in or similar) using distutils? If there's not, is there a good way to access whatever the user passes in as --prefix (besides parsing sys.argv yourself)? Thanks, \t -- http://mail.python.org/mailman/listinfo/python-list

Appending to sys.path during module install with distutils

2011-10-30 Thread Darren Hart
I'm trying to use distutils to install a collection of modules in /usr/local/lib/python2.7/site-packages. My distribution (Fedora 15) doesn't include any /usr/local paths in sys.path, so the import fails when running the program. The distutils documentation suggests adding a $NAME.pth

Re: compiling qt app extensions with distutils

2011-07-22 Thread Thomas Jollans
. > >> First of all, you don't technically need distutils: an extension module >> is simply a shared library that you can build like any other library, >> and I'm sure your build system can easily handle that. Then, you can >> probably use bits of distutils to figure

Re: compiling qt app extensions with distutils

2011-07-22 Thread strattonbrazil
gt; option. > > Okay, your terminology was confused: you want to extend Python, not your > application. Sorry, after I sent that e-mail, I realized I had already mixed up the terms, where I should have written "embedding". > First of all, you don't technically need distut

Re: compiling qt app extensions with distutils

2011-07-22 Thread Thomas Jollans
confused: you want to extend Python, not your application. First of all, you don't technically need distutils: an extension module is simply a shared library that you can build like any other library, and I'm sure your build system can easily handle that. Then, you can probably use bit

Re: compiling qt app extensions with distutils

2011-07-22 Thread strattonbrazil
am, Thomas Jollans wrote: > On 22/07/11 15:43, strattonbrazil wrote: > > > I'd like to extend my C++ Qt applicaition using distutils.  Looking > > over the tutorial docs (http://docs.python.org/extending/ > > building.html#building), it seems fairly intuitive for simpl

Re: compiling qt app extensions with distutils

2011-07-22 Thread Thomas Jollans
On 22/07/11 15:43, strattonbrazil wrote: > I'd like to extend my C++ Qt applicaition using distutils. Looking > over the tutorial docs (http://docs.python.org/extending/ > building.html#building), it seems fairly intuitive for simple > examples, but I'm already using

compiling qt app extensions with distutils

2011-07-22 Thread strattonbrazil
I'd like to extend my C++ Qt applicaition using distutils. Looking over the tutorial docs (http://docs.python.org/extending/ building.html#building), it seems fairly intuitive for simple examples, but I'm already using a rather complex qmake/Makefile system to get all my cpp files and

Re: Distutils beginner question - windows

2011-06-05 Thread Mark Hammond
On 3/06/2011 6:57 PM, Seb S wrote: Hi all, Just a quick question , I have a simple script I want to convert into a windows installer and give to some friends. I had a look at http://docs.python.org/distutils/introduction.html and wrote this setup script: #!/usr/bin/env python from

Distutils beginner question - windows

2011-06-03 Thread Seb S
Hi all, Just a quick question , I have a simple script I want to convert into a windows installer and give to some friends. I had a look at http://docs.python.org/distutils/introduction.html and wrote this setup script: #!/usr/bin/env python from distutils.core import setup setup(name=&q

SOLVED Re: distutils on windows ignoring package_data

2011-05-21 Thread Wilbert Berendsen
Solved: the problem was right there in the packagelist() function, it replaced '/' with dots instead of using os.sep ... I'm very sorry for the noise, although it's surprising everything else works without dots in the packages names :-) with regard, Wilbert Berendsen -- http://www.wilbertberend

distutils on windows ignoring package_data

2011-05-21 Thread Wilbert Berendsen
Hi, I have created a distutils setup.py script that installs a list of packages (all subpackages of one main package). Some packages have package_data files (icons, translations, etc). Running setup.py install on my Linux system (python 2.6) perfectly installs all package data, but on Windows

Re: Merge multiple source directories into one package with distutils?

2011-05-11 Thread Gregory Ewing
Miki Tebeka wrote: .py files from more than one source directory into a single package when installing? The Selenium Python bindings does something like that, have a look at http://selenium.googlecode.com/svn/trunk/setup.py Unless I'm missing something, nothing out of the ordinary is happenin

Re: Merge multiple source directories into one package with distutils?

2011-05-11 Thread Miki Tebeka
Greg, > Is there a straightforward way to tell distutils to merge .py files from more than one source directory into a single package when installing? The Selenium Python bindings does something like that, have a look at http://selenium.googlecode.com/svn/trunk/setup.py The other option is

Merge multiple source directories into one package with distutils?

2011-05-10 Thread Gregory Ewing
Is there a straightforward way to tell distutils to merge .py files from more than one source directory into a single package when installing? PyGUI consists of some generic modules and some platform specific ones, that conceptually all live at the same level within a single package. In the

Execute bit in .tar.gz file produced by distutils

2011-02-22 Thread Dan Goodman
Hi all, I have a problem with using distutils and was hoping someone might be able to help. The .exe and .zip files work fine - and easy_install uses the .zip file by default it seems - but in the .tar.gz file the execute bit is not set for any directories meaning a user on linux has to go

Re: generating .zip including __main__.py file in top root using distutils

2011-02-15 Thread alain.spineux
I answer myself to put my question on top of the list again. On Feb 12, 7:47 pm, aspineux wrote: > Python 2.6 can run a zip file, searching for __main__.py in the root > of the zip archive and running it. > How can I create such an archive using distutils (and not > setuptools) ?

generating .zip including __main__.py file in top root using distutils

2011-02-12 Thread aspineux
Python 2.6 can run a zip file, searching for __main__.py in the root of the zip archive and running it. How can I create such an archive using distutils (and not setuptools) ? If I use # python setup.py bdist --format=zip I get a "dumb" zip file with a deep tree structure from "

Automatic Distutils generator

2010-11-25 Thread macm
Hi Folks I am trying run Distutils setup inside a script. The Docs dont tell me much and I cant find any examples. This script will generate shared libraries recursive to all files in a dir. - import os import sys from distutils.core import setup as d from

Re: distutils, cygwin, ' not a regular file

2010-11-15 Thread Christoph Michalke
ing manifest file 'MANIFEST' > [...] > ' not a regular file -- skipping > ' not a regular file -- skipping > ' not a regular file -- skipping In distutils/command/sdist.py in make_release_tree() I find log.warn("'%s' not a regular file -- skipping&quo

Re: Cross compiling (i386 from amd64) with distutils

2010-11-09 Thread bobicanprogram
hon extension, I've basically taken > the > "noddy" demo[1] and thrown in a function call from the DSC library > just to see > if I can get something to build. > > My distutils setup.py looks like: > > > from distutils.core im

Re: Cross compiling (i386 from amd64) with distutils

2010-11-08 Thread Jason
On Nov 8, 4:16 pm, "Martin v. Loewis" wrote: > No. A python *installation* has a Makefile, in config/Makefile. If > you want distutils to use different options, you could edit this > Makefile. Oh, I see what you mean. But then it would affect *everything* I build on that mac

Re: Cross compiling (i386 from amd64) with distutils

2010-11-08 Thread Martin v. Loewis
>> You can solve some of the >> problems by editing the Makefile which it uses to learn the compiler >> options from. > > I don't understand this - do you mean I should edit the Makefile in > the actual distutils package, and somehow use that in my project >

Re: Cross compiling (i386 from amd64) with distutils

2010-11-07 Thread Jason
On Nov 8, 8:55 am, Jason wrote: > Do you know if virtualenv allows installing a Python environment with > a different architecture than that of the system Python install? I > suspect not, but maybe there's an option I don't know about. Found a better solution, which is to just compile Python from

Re: Cross compiling (i386 from amd64) with distutils

2010-11-07 Thread Jason
On Nov 8, 8:30 am, "Martin v. Loewis" wrote: > At a minimum, you should be using the target's python binary. distutils > has close-to-none cross-compiling support. Do you know if virtualenv allows installing a Python environment with a different architecture than that

Re: Cross compiling (i386 from amd64) with distutils

2010-11-07 Thread Martin v. Loewis
> So is it possible to get distutils to cross compile something like > this, and > if so, what am I missing? Or am I using the wrong tool for the job? At a minimum, you should be using the target's python binary. distutils has close-to-none cross-compiling support. You can sol

Cross compiling (i386 from amd64) with distutils

2010-11-07 Thread Jason
f I can get something to build. My distutils setup.py looks like: from distutils.core import setup, Extension module1 = Extension('noddy', sources = ['src/noddy.c'], libraries = ['pthread'], include_dirs = ['/usr/local/dscud-6.02&

Data files with distutils and special paths

2010-10-20 Thread Pablo Recio Quijano
Hi! I was following the documentation about distutils [1] in order to install my application in a python-way. But installing it in /usr/local (following the official doc [2] too) with $ sudo python setup.py install --prefix=/usr/local The data files are created inside the python package, in

Re: distutils, cygwin, 'not a regular file'

2010-09-15 Thread Thomas Jollans
On Wednesday 15 September 2010, it occurred to Paul Watson to exclaim: > So, what is not a regular file about this? Is there any way to find out > which files are being considered irregular? Regular files are the kind of files used to store bytes. Other kinds of files you might find in a file sy

Re: distutils, cygwin, 'not a regular file'

2010-09-15 Thread Lawrence D'Oliveiro
In message <8faqj0fno...@mid.individual.net>, Paul Watson wrote: > ' not a regular file -- skipping > ' not a regular file -- skipping > ' not a regular file -- skipping Just a guess, is the file it’s complaining about named “'”? -- http://mail.python.org/mailman/listinfo/python-list

distutils, cygwin, 'not a regular file'

2010-09-14 Thread Paul Watson
So, what is not a regular file about this? Is there any way to find out which files are being considered irregular? $ uname -a CYGWIN_NT-6.0-WOW64 pwatson 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin $ cat setup.py from distutils.core import setup setup( name='xlsexport', version='0

Re: distutils question - building universal modules on OS X?

2010-08-07 Thread Aahz
In article , Louis Theran wrote: > >Is there a standard recipe for getting distutils to built universal .so >files for modules that have C/C++ source? You should check the archives of http://mail.python.org/mailman/listinfo/pythonmac-sig -- Aahz (a...@python

Re: distutils question - building universal modules on OS X?

2010-07-26 Thread Robert Kern
On 7/26/10 1:36 PM, Louis Theran wrote: Is there a standard recipe for getting distutils to built universal .so files for modules that have C/C++ source? If your Python was built to be Universal, it will automatically use the same architecture flags to build the extension modules Universal

distutils question - building universal modules on OS X?

2010-07-26 Thread Louis Theran
Is there a standard recipe for getting distutils to built universal .so files for modules that have C/C++ source? -- http://mail.python.org/mailman/listinfo/python-list

Standard distutils package problems with MSVC / lacking functionality?

2010-07-12 Thread Alf P. Steinbach /Usenet
I let the setup.py script talk: # 03_1__noddy from distutils.core import setup, Extension import distutils.ccompiler compilerName = distutils.ccompiler.get_default_compiler() options = [] if compilerName == "msvc": # * distutils sets warning level 3: # Overriding with war

Does "distutils" support "python setup.py test"?

2010-06-23 Thread John Nagle
Many library modules support "python setup.py test", but the Python distutils documentation at http://docs.python.org/distutils/configfile.html makes no mention of it, except as a possible future extension. Some setup.py files have test_suite = "module

Re: distutils examples?

2010-04-16 Thread Philip Semanchuk
On Apr 16, 2010, at 3:12 PM, TomF wrote: I'm packaging up a program with distutils and I've run into problems trying to get setup.py right. It's not a standalone package; it's a script plus modules, data files and documentation. I've been over the distutils doc

distutils examples?

2010-04-16 Thread TomF
I'm packaging up a program with distutils and I've run into problems trying to get setup.py right. It's not a standalone package; it's a script plus modules, data files and documentation. I've been over the distutils documentation but I'm having trouble

Re: using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Bill Janssen
e this off msilib directly, instead of trying > to subvert bdist_msi to do what you want. Yes, that was the first thing I looked at. But as you've pointed out in the past, it requires a lot of MSI know-how to use that library directly. For a variety of applications, you've already

Re: using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Martin v. Löwis
> I've been re-thinking the UpLib Windows installer technology, and it > occurred to me to wonder why I can't just use the nice bdist_msi module > in Python to build my packages. I took a look, and it seems almost > doable. Presumably you wrote it? Correct. > UpLib is a big package, with lots o

using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Bill Janssen
Martin, I've been re-thinking the UpLib Windows installer technology, and it occurred to me to wonder why I can't just use the nice bdist_msi module in Python to build my packages. I took a look, and it seems almost doable. Presumably you wrote it? UpLib is a big package, with lots of Python an

Re: Python distutils build problems with MinGW

2010-02-01 Thread Andrej Mitrovic
Well, in any case this seems to be working ok for me now. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   >