python: setup.py: how NOT to install C extensions used only by tests

2022-11-30 Thread Bartosz Golaszewski
kages argument. Even though none of the python sources from the tests/ directory gets installed when running setup.py install, the extension binary (and nothing else) is installed into site-packages/tests/. How can I prohibit setuptools from doing it? Best Regards, Bartosz Golaszewski -- https://mai

回复: setup.py + cython == chicken and the egg problem

2022-08-19 Thread Daniel Lee
Thank you! 从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送 发件人: Dan Stromberg<mailto:drsali...@gmail.com> 发送时间: 2022年8月19日 8:35 收件人: Python List<mailto:python-list@python.org> 主题: Re: setup.py + cython == chicken and the egg problem On Tue, Aug 16, 2022 at 2:0

Re: setup.py + cython == chicken and the egg problem

2022-08-18 Thread Dan Stromberg
On Tue, Aug 16, 2022 at 2:03 PM Dan Stromberg wrote: > Hi folks. > > I'm attempting to package up a python package that uses Cython. > > Rather than build binaries for everything under the sun, I've been > focusing on including the .pyx file and running cython on it at install > time. This requi

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Dan Stromberg
On Wed, Aug 17, 2022 at 3:05 PM Dan Stromberg wrote: > I commented out those too lines, but I'm still getting errors. They seem >> to stem from: >> $ "/home/dstromberg/venv/pyx-treap-testing/bin/python3", >> ["/home/dstromberg/venv/pyx-treap-testing/bin/python3", >> "/home/dstromberg/venv/pyx-tr

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Dan Stromberg
> >ERROR: No matching distribution found for setuptools >> >[end of output] >> > >> >note: This error originates from a subprocess, and is likely not a >> > problem with pip. >> > error: subprocess-exited-with-error &

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Dan Stromberg
lem with pip. > > error: subprocess-exited-with-error > > > I looked at your code and I think you are trying too hard. As far as I > understand, you need Cython to be installed before the build process > begins. Your entry in pyproject.toml should take care of that. > But yo

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Dieter Maurer
Dan Stromberg wrote at 2022-8-16 14:03 -0700: > ... >I'm attempting to package up a python package that uses Cython. > ... > Installing build dependencies ... error > error: subprocess-exited-with-error > > ×? pip subprocess to install build dependencies did not run successfully. > ?? exit code

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Christian Gollwitzer
rying too hard. As far as I understand, you need Cython to be installed before the build process begins. Your entry in pyproject.toml should take care of that. But you also have these lines in your setup.py subprocess.check_call('%s -m pip install cython' % (sys.executable, ), shell=Tru

Re: setup.py + cython == chicken and the egg problem

2022-08-16 Thread Dan Stromberg
On Tue, Aug 16, 2022 at 2:08 PM Chris Angelico wrote: > On Wed, 17 Aug 2022 at 07:05, Dan Stromberg wrote: > > > > Hi folks. > > > > I'm attempting to package up a python package that uses Cython. > > > > Rather than build binaries for everything under the sun, I've been > focusing > > on includ

Re: setup.py + cython == chicken and the egg problem

2022-08-16 Thread Chris Angelico
On Wed, 17 Aug 2022 at 07:05, Dan Stromberg wrote: > > Hi folks. > > I'm attempting to package up a python package that uses Cython. > > Rather than build binaries for everything under the sun, I've been focusing > on including the .pyx file and running cython on it at install time. This > requir

setup.py + cython == chicken and the egg problem

2022-08-16 Thread Dan Stromberg
Hi folks. I'm attempting to package up a python package that uses Cython. Rather than build binaries for everything under the sun, I've been focusing on including the .pyx file and running cython on it at install time. This requires a C compiler, but I'm OK with that. However, when I try to ins

Setup.py + src: Modules not found

2021-08-30 Thread Abdur-Rahmaan Janhangeer
Greetings list, I have this project: https://github.com/pyhoneybot/honeybot I badly wanted to use setup.cfg but editable mode is not allowed for now. I then switched back to setup.py. This is my first time with src/, my entry point is src/honeybot/manage.py:main now in editable mode i manage

Re: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-31 Thread Mats Wichmann
On 10/30/20 1:38 PM, Gian_Xatzak. wrote: >When I tried to download  matplotlib, it show me that message in the end: > >  > >ERROR: Command errored out with exit status 1: python setup.py egg_info >Check the logs for full command output. > >  &g

Re: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 6:39 AM Gian_Xatzak. wrote: > >When I tried to download matplotlib, it show me that message in the end: > > > >ERROR: Command errored out with exit status 1: python setup.py egg_info >Check the logs for full command output. > Did

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-30 Thread Gian_Xatzak .
When I tried to download  matplotlib, it show me that message in the end:   ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.   *I have Windows 10, Python3.8.6(64bit)     Sent from [1]Mail for Windows

Re: Can't run setup.py offline due to setup_requires - setup.py calls home

2019-02-11 Thread Chris Narkiewicz via Python-list
On 11/02/2019 19:30, Chris Narkiewicz via Python-list wrote: > Is there any extra step I have to take? Ok, I'll respond to myself, as this was really silly. Debian ships hopelessly obsolete pip 9.PEP 518 is supported in pip 10+. Cheers, Chris signature.asc Description: OpenPGP digital signatur

Re: Can't run setup.py offline due to setup_requires - setup.py calls home

2019-02-11 Thread Chris Narkiewicz via Python-list
On 11/02/2019 15:57, Ben Finney wrote: > All of the build dependencies, *including* the ones specified in > ‘setup_requires’? Yes. easy_install simply doesn't look there. If I provide ~/.pydistutils.cfg with a path to find_links, it works ok. Config file in $HOME however is no-go for a CI or buil

Re: Can't run setup.py offline due to setup_requires - setup.py calls home

2019-02-11 Thread Ben Finney
Chris Narkiewicz via Python-list writes: > debian/rules calls this pip to install all requirements from local > package collection: > > pip3 install --log=... --no-cache --no-index --find-links=pypi > --no-binary=":all:" -r requirements.txt As you have observed, this fails because Setuptools doe

Can't run setup.py offline due to setup_requires - setup.py calls home

2019-02-11 Thread Chris Narkiewicz via Python-list
to network, but fails for offline builds. I pinpointed the problem to package Automat, that specifies some dependencies via setup_requires=[...]: setup( ..., setup_requires=[ 'setuptools-scm', 'm2r', ], ... ) Trying to build Automat locally by ca

Re: setup.py, how to find main program/module?

2018-12-19 Thread ant
;ve also tried nfgp and main). >> ... >> i suspect i've not really understood entry >> points and may not have it specified correctly in >> setup.py. >> >> any help appreciated. :) > > I think you are right: the problem is likely with the > "e

Re: setup.py, how to find main program/module?

2018-12-18 Thread dieter
; i suspect i've not really understood entry > points and may not have it specified correctly in > setup.py. > > any help appreciated. :) I think you are right: the problem is likely with the "entry_points" specification. My "dm.zopepatches.ztest&quo

setup.py, how to find main program/module?

2018-12-18 Thread ant
: https://test.pypi.org/project/ngfp/ i suspect i've not really understood entry points and may not have it specified correctly in setup.py. any help appreciated. :) to install it you'll need to use (to pull in pyglet): $ pip install --index-url https://test.pypi.org/simple/ --ex

Re: setup.py and licensing questions

2018-12-12 Thread songbird
Ben Finney wrote: > songbird writes: > >> can i put multiple License lines in setup.py >> classifiers like: ? >> >> "License :: OSI Approved :: ???", >> "License :: OSI Approved :: ???", > > Yes. > > The

Re: setup.py and licensing questions

2018-12-12 Thread Ben Finney
songbird writes: > can i put multiple License lines in setup.py > classifiers like: ? > > "License :: OSI Approved :: ???", > "License :: OSI Approved :: ???", Yes. The semantics of that are not formalised, to my knowledge. You wo

setup.py and licensing questions

2018-12-12 Thread songbird
hi, i'm currently working through all the packaging and licensing stuff for my project and want to put the license in the setup.py file, but there may actually be more than one license (GPL ones for the artwork i've borrowed from another project and whatever license i choose to

Re: setuptools setup.py commands are unintuitive and undiscoverable (--help-commands should replace --help)

2018-04-27 Thread Thomas Jollans
On 27/04/18 06:06, jimbo1qaz wrote: > Frequently I have encountered projects packaged using setuptools, with a > setup.py. To find out how to install it, I usually turned to Stack Overflow > (https://stackoverflow.com/a/1472014) which doesn't explain what options > exist or do.

setuptools setup.py commands are unintuitive and undiscoverable (--help-commands should replace --help)

2018-04-27 Thread jimbo1qaz
Frequently I have encountered projects packaged using setuptools, with a setup.py. To find out how to install it, I usually turned to Stack Overflow (https://stackoverflow.com/a/1472014) which doesn't explain what options exist or do. Surprisingly, neither "setup.py" nor "setu

Re: Distributing multiple packages with on setup.py

2017-10-02 Thread Jimmy Thrasibule
I think I will head this direction. And with `setup.cfg `_, it is quite easy to keep the package's metadata in a standard way and feed this to setup(). Regards, Jimmy -- https://mail.python.org/ma

Re: Distributing multiple packages with on setup.py

2017-10-02 Thread Jimmy Thrasibule
> I do this with my stuff, but instead of keeping a common setup.py I have an > elaborate and clumsy system that rolls a package or module distro on the > fly, writing a setup.py file in the process. > > So each package/module I publish has a dict names "DISTINFO" in the

Re: Distributing multiple packages with on setup.py

2017-09-30 Thread Cameron Simpson
s can be installed. [...] The new structure: ├─ myproj/ │ ├─ common/ │ │ └─ mod1.py │ ├─ subpackage1/ │ ├─ subpackage2/ │ └─ __init__.py └─ setup.py As you can see not much has changed except that `myproj` is now a `namespace package <https://packaging.python.or

Re: Distributing multiple packages with on setup.py

2017-09-29 Thread dieter
Jimmy Thrasibule writes: > ... > Is it possible, still keeping one unique ``setup.py`` file, to create > 3 independent packages? > > * ``myproj.common`` > * ``myproj.subpackage1`` > * ``myproj.subpackage2`` > > Also I'd like to specify that when

Distributing multiple packages with on setup.py

2017-09-29 Thread Jimmy Thrasibule
cture: / ├─ myproj/ │ ├─ __init__.py │ ├─ mod1.py │ ├─ subpackage1/ │ └─ subpackage2/ └─ setup.py The new structure: / ├─ myproj/ │ ├─ common/ │ │ └─ mod1.py │ ├─ subpackage1/ │ ├─ subpackage2/ │ └─ __init__.py └─ setup.py As yo

custom setup.py link argument order

2017-03-07 Thread Gabriel Ganne
Hi, I'm currently writing a python C module which has a chained dependency: - mymodule requires libb - libb requires liba To that effect, within setup.py, I link against both liba and libb libraries=['a', 'b'], Also, as I'm working on Ubuntu, I want to

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
m setuptools import setup`). > > However, if I have a `distutils`-based `setup.py`, when I run it, > `setuptools` is not used - thus the instructions on the page don't work. > > It is possible to run a `distutils`-based script through `setuptools`, as > `pip` does, but it r

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
`setup.py`, when I run it, `setuptools` is not used - thus the instructions on the page don't work. It is possible to run a `distutils`-based script through `setuptools`, as `pip` does, but it requires the following code (https://github.com/pypa/pip/blob/8.1.2/pip/req/req_install.py

Py2 + PY3 transform a project (git submodule) to a clean package (with setup.py)

2016-01-15 Thread Gelonida N
pdate the sub module. The normal approach would be to change the directory structure to: mylib/ # the base directory of the git repository mylib/setup.py# the setup script as intended one level up mylib/.git mylib/mylib/__init__.py mylib/mylib/logging.py mylib/mylib/collections.py my

Re: understanding why there is no setup.py uninstall

2015-07-07 Thread Laura Creighton
evaluate it --- You may run into this problem. Lots of messages like this: (Because easy_install assumed you must have this, which isn't true of a lot of distributions) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 43, > in _execfile >

Re: understanding why there is no setup.py uninstall

2015-07-07 Thread c.buhtz
On 2015-07-06 18:34 Ben Finney wrote: > Part of the better system is that we have the Python Packaging > Authority http://pypa.io/> which didn't exist when Distutils was > designed. Read the documents there and I hope you'll be glad at the > improvement! > ... Thank you very much for that explana

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Ben Finney
ls quite dirty when installing > something with the setup.py but then not being able to remove it clean > like I would do it with packages of my system-package-manager (e.g. > with apt-get on a debianized system). … then I think you'll find it more productive to realise we *do* have

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Mark Lawrence
On 05/07/2015 10:04, c.bu...@posteo.jp wrote: This question is not technical. I know that there is no 'uninstall' Option in a setup.py. I know this discussions and workarounds for that problem, too. <http://stackoverflow.com/questions/1550226/python-setup-py-uninstall> I want t

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Chris Warrick
On 5 July 2015 at 11:04, wrote: > This question is not technical. > I know that there is no 'uninstall' Option in a setup.py. > I know this discussions and workarounds for that problem, too. > <http://stackoverflow.com/questions/1550226/python-setup-py-uninstall>

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Chris Angelico
On Sun, Jul 5, 2015 at 7:04 PM, wrote: > This question is not technical. > I know that there is no 'uninstall' Option in a setup.py. > I know this discussions and workarounds for that problem, too. > <http://stackoverflow.com/questions/1550226/python-setup-py-uninstall&

understanding why there is no setup.py uninstall

2015-07-06 Thread c.buhtz
This question is not technical. I know that there is no 'uninstall' Option in a setup.py. I know this discussions and workarounds for that problem, too. <http://stackoverflow.com/questions/1550226/python-setup-py-uninstall> I want to understand the design concept behind it. Wh

A question about setup.py

2014-12-04 Thread David Aldrich
it and ran: python setup.py install within the extracted folder. But path.py still appears not to have been copied to: C:\Python27 What am I doing wrong? Best regards David -- https://mail.python.org/mailman/listinfo/python-list

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-05 Thread Cyd Haselton
On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily wrote: > In article > , > Cyd Haselton wrote: >> Just checking: is sincos() the same as sin() and cos()? Nm output for >> my toolchain's libm does show sin() and cos() just not sincos() > > See, this is what you get when you ask for free help: bad info.

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-02 Thread Ned Deily
In article , Cyd Haselton wrote: > Just checking: is sincos() the same as sin() and cos()? Nm output for > my toolchain's libm does show sin() and cos() just not sincos() See, this is what you get when you ask for free help: bad info. sincos isn't the same, as a little of googling informs me.

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-02 Thread Cyd Haselton
On Sat, Nov 1, 2014 at 5:25 PM, Ned Deily wrote: > In article > , > Cyd Haselton wrote: >> On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton wrote: > [...] >> > Sure enough, nm -D libm.so shows that sincos is NOT available in that >> > library on my Android device. Now to figure out what to do about

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-01 Thread Ned Deily
In article , Cyd Haselton wrote: > On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton wrote: [...] > > Sure enough, nm -D libm.so shows that sincos is NOT available in that > > library on my Android device. Now to figure out what to do about it. [...] > UPDATE: After doing a bit of research it looks

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-01 Thread Cyd Haselton
On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton wrote: > On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily wrote: >> In article >> , >> Cyd Haselton wrote: >>> So, after trying various ways to add that flag before lpython in >>> setup.py, I stripped all --all

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-01 Thread Cyd Haselton
On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily wrote: > In article > , > Cyd Haselton wrote: >> So, after trying various ways to add that flag before lpython in >> setup.py, I stripped all --allow-shlib-undefined >> --no-allow-shlib-undefined feom the Makefile, ran make

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-01 Thread Ned Deily
In article , Cyd Haselton wrote: > So, after trying various ways to add that flag before lpython in > setup.py, I stripped all --allow-shlib-undefined > --no-allow-shlib-undefined feom the Makefile, ran make clean, and > make. > > I still get the following error:

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-31 Thread Cyd Haselton
ent nor an understanding >> > of why you need to specify --allow-shlib-undefined (it seems to be the >> > default in some versions of ld). You could look at and, if necessary, >> > modify Lib/distutils, the part of the Python standard library that >> > builds exten

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-29 Thread Cyd Haselton
ent nor an understanding >> > of why you need to specify --allow-shlib-undefined (it seems to be the >> > default in some versions of ld). You could look at and, if necessary, >> > modify Lib/distutils, the part of the Python standard library that >> > builds exten

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Ned Deily
n some versions of ld). You could look at and, if necessary, > > modify Lib/distutils, the part of the Python standard library that > > builds extension modules from setup.py. > No need to apologize. Also no need to have an understanding of the > environment; with a few rare excep

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Cyd Haselton
> > Sorry, I have no experience with that environment nor an understanding > of why you need to specify --allow-shlib-undefined (it seems to be the > default in some versions of ld). You could look at and, if necessary, > modify Lib/distutils, the part of the Python stand

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Ned Deily
--allow-shlib-undefined (it seems to be the default in some versions of ld). You could look at and, if necessary, modify Lib/distutils, the part of the Python standard library that builds extension modules from setup.py. -- Ned Deily, n...@acm.org -- https://mail.python.org/mailman/listinfo/python-list

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-27 Thread Cyd Haselton
On Mon, Oct 27, 2014 at 3:39 PM, Ned Deily wrote: > In article > , > Cyd Haselton wrote: >> I need to add a linker option to the command(s) run by setup.py when >> building various objects. I'm not familiar with Python at all, so I >> basically copied and modi

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-27 Thread Ned Deily
In article , Cyd Haselton wrote: > I need to add a linker option to the command(s) run by setup.py when > building various objects. I'm not familiar with Python at all, so I > basically copied and modified a line from one area of the script to > another > > > ext_m

Build Question: How to Add -Wl,--option Before Objects In Setup.py?

2014-10-27 Thread Cyd Haselton
I need to add a linker option to the command(s) run by setup.py when building various objects. I'm not familiar with Python at all, so I basically copied and modified a line from one area of the script to another ext_modules=[Extension('_struct', ['_struct.c'], extra

Re: setup.py issue - some files are included as intended, but one is not

2014-01-17 Thread Dan Stromberg
On Wed, Jan 15, 2014 at 7:18 AM, Piet van Oostrum wrote: > Dan Stromberg writes: > >> On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg wrote: >>> Hi folks. >>> >>> I have a setup.py problem that's driving me nuts. >> >> Anyone? I

Re: setup.py issue - some files are included as intended, but one is not

2014-01-15 Thread Piet van Oostrum
Dan Stromberg writes: > On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg wrote: >> Hi folks. >> >> I have a setup.py problem that's driving me nuts. > > Anyone? I've received 0 responses. I can't even install your code because there's a bug in i

Re: setup.py issue - some files are included as intended, but one is not

2014-01-14 Thread Ethan Furman
On 01/14/2014 01:26 PM, Dan Stromberg wrote: On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg wrote: Hi folks. I have a setup.py problem that's driving me nuts. Anyone? I've received 0 responses. I have no answer, but forwarding to Distutils (hopefully it's an appropriate

Re: setup.py issue - some files are included as intended, but one is not

2014-01-14 Thread Dan Stromberg
On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg wrote: > Hi folks. > > I have a setup.py problem that's driving me nuts. Anyone? I've received 0 responses. > I have a treap.py file that tries to "import * from pyx_treap.so", and > failing that, it'll &quo

setup.py install and compile errors

2014-01-14 Thread David
n a functioning module under a range of python versions, but older versions want to compile all .py modules as part of setup.py install, and that produces ugly install messages, with stack-traces. I would like to avoid the ugliness. I can add python code to setup.py, before the setup(...)

setup.py issue - some files are included as intended, but one is not

2014-01-11 Thread Dan Stromberg
Hi folks. I have a setup.py problem that's driving me nuts. I have a treap.py file that tries to "import * from pyx_treap.so", and failing that, it'll "import * from py_treap.py" (sans extensions of course). Naturally, all 3 of these should be included - although i

Re: Preventing nose from finding setup.py

2013-05-24 Thread Roy Smith
In article , Roy Smith wrote: > We've got a package (with an empty __init__.py), which contains a > setup.py file. When I run nosetests, the test discovery code finds > setup.py, thinks it's a test, and tries to run it (with predictably poor > results). Ugh, I descri

Preventing nose from finding setup.py

2013-05-24 Thread Roy Smith
We've got a package (with an empty __init__.py), which contains a setup.py file. When I run nosetests, the test discovery code finds setup.py, thinks it's a test, and tries to run it (with predictably poor results). Is there some way to mark this file as not a test? If it was a me

python setup.py install and dependencies

2013-04-14 Thread Marco
I have a some confusion about the package installation process. Let's say I have manually installed Python 3.3, so I don't have distribute and pip. Now I want to install the bpython shell, so I download the source code and after I try to do "python3.3 setup.py install". I d

Re: setup.py Choosing Older Compiler On Windows

2012-12-03 Thread Ami Tavory
From: Irmen de Jong >> To: python-list@python.org >> Cc: >> Date: Mon, 03 Dec 2012 01:10:23 +0100 >> Subject: Re: setup.py Choosing Older Compiler On Windows >> On 2-12-2012 22:06, Dave Angel wrote: >> > On 12/02/2012 09:34 AM, Ami Tavory wrote: >&

Re: setup.py Choosing Older Compiler On Windows

2012-12-02 Thread Irmen de Jong
On 2-12-2012 22:06, Dave Angel wrote: > On 12/02/2012 09:34 AM, Ami Tavory wrote: >> Hello, >> >> I'm porting a C++ extension module to a Windows machine that has both VC8 >> and VC10 installed. Unfortunately, `setup.py build` tries to build using >>

Re: setup.py Choosing Older Compiler On Windows

2012-12-02 Thread Dave Angel
On 12/02/2012 09:34 AM, Ami Tavory wrote: > Hello, > > I'm porting a C++ extension module to a Windows machine that has both VC8 > and VC10 installed. Unfortunately, `setup.py build` tries to build using > VC8, which fails (the extension uses C++ standard libraries that

setup.py Choosing Older Compiler On Windows

2012-12-02 Thread Ami Tavory
Hello, I'm porting a C++ extension module to a Windows machine that has both VC8 and VC10 installed. Unfortunately, `setup.py build` tries to build using VC8, which fails (the extension uses C++ standard libraries that VC didn't used to have). Is there a way to get setup.py t

Setup.py not respecting package_dir during develop

2012-11-24 Thread disappearedng
├── setup.py ├── src │ ├── giordano │ └── spider ├── test.txt └── venv ├── bin ├── include ├── lib └── share And this is my setup file: from setuptools import setup setup(name='giordano', version='0.1', packages=['giordano'], package_

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-10 Thread Makoto Kuwata
On Sun, Jun 10, 2012 at 3:51 PM, Ned Deily wrote: >> >> Thank you Ned, >> but I can't find environment variable name on that page which is >> equivarent to '--install-scripts' or other options. > > Sorry, I wasn't clear.  Using the Distutils config files would be > instead of setting environment v

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Ned Deily
In article , Makoto Kuwata wrote: > On Sun, Jun 10, 2012 at 11:55 AM, Ned Deily wrote: > > In article > > , > >  Makoto Kuwata wrote: > >> "setup.py install" command supports options such as --prefix, > >> --install-scripts, and so on. > &

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Makoto Kuwata
On Sun, Jun 10, 2012 at 11:55 AM, Ned Deily wrote: > In article > , >  Makoto Kuwata wrote: > >> Hi, >> >> "setup.py install" command supports options such as --prefix, >> --install-scripts, and so on. >> For example: >> >>   $ py

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Ned Deily
In article , Makoto Kuwata wrote: > Hi, > > "setup.py install" command supports options such as --prefix, > --install-scripts, and so on. > For example: > > $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin > > Question: is it

[Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Makoto Kuwata
Hi, "setup.py install" command supports options such as --prefix, --install-scripts, and so on. For example: $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin Question: is it possible to specify these options by environment variable? I want to specify -

setup.py

2012-04-20 Thread alister ware
What is the correct way to set the version of my package with distutils when i build it using python setup.py bdist_rpm I have __version__="x.x.x" in my main programm but if i add from import __version__ into setup.py if fails when my prog tries to import gi.repository. I

Re: setup.py for an extension

2012-03-21 Thread Richard Thomas
Assuming you have: lib/__init__.py lib/foo.py lib/foo.c Then: from distutils.core import setup, Extension setup(name="lib", packages=["lib"], ext_modules=[Extension("lib._foo", ["lib/foo.c"])]) -- http://mail.python.org/mailman/listinfo/python-list

setup.py for an extension

2012-03-20 Thread Paulo da Silva
Hi all. I have a python extension (bindings for a C lib - no swig) and I would like to write a setup.py to build a source distribution pack. The extension consists of 3 files: foo.h foo.c foo.py that are placed in a eclipse directory /home//ECLIPSE/workspace/ext/src foo.h+foo.c are to be

Re: setup.py rebuilds EVERYTHING on windows?

2011-05-02 Thread Stefan Behnel
Mathew, 02.05.2011 18:45: I'm trying to build an extension (spice-0.12) on windows. Whenever I change a single file, everything gets rebuilt. Did you report this to the authors? I suppose there's a project mailing list? Stefan -- http://mail.python.org/mailman/listinfo/python-list

setup.py rebuilds EVERYTHING on windows?

2011-05-02 Thread Mathew
Hi I'm trying to build an extension (spice-0.12) on windows. Whenever I change a single file, everything gets rebuilt. ?? Python2.7.1 Windows XP Visual Studio 9 setuptools 0.6c11 -Mathew -- http://mail.python.org/mailman/listinfo/python-list

Re: A way to get setup.py to create links instead of copy

2010-11-10 Thread Geoff Bache
unning it. > > > On my current project, however, I find that I have to install my > > Python code with setup.py before it will run. Being used to not having > > this step, I easily forget to run setup.py install before they will > > run, and then spend time wondering why

Re: A way to get setup.py to create links instead of copy

2010-11-09 Thread Steve Holden
ave to install my > Python code with setup.py before it will run. Being used to not having > this step, I easily forget to run setup.py install before they will > run, and then spend time wondering why my changes didn't work. > > So I went into the target directory and replace

A way to get setup.py to create links instead of copy

2010-11-09 Thread Geoff Bache
Hi all, One of the things I've always loved about Python (having come from compiled languages) was the lack of an extra step between changing my code and running it. On my current project, however, I find that I have to install my Python code with setup.py before it will run. Being used t

Re: Define macro when invoking setup.py

2010-11-08 Thread Jason
On Nov 9, 10:56 am, Jason wrote: > But can they be selected or set from the command line, so I can do, > say, "setup.py build -DDEBUG=1"? Just answered my own question: there's an option for "build_ext" (NOT "build") that allows this. Thanks, Jason --

Re: Define macro when invoking setup.py

2010-11-08 Thread Jason
               ('HAVE_STRFTIME', None)], >           undef_macros=['HAVE_FOO', 'HAVE_BAR']) > > Note that define_macros requires a list of tuples each having two members. But can they be selected or set from the command line, so I can do, say, "setup.py build -DDEBUG=1"? — Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: Define macro when invoking setup.py

2010-11-08 Thread Christian Heimes
Am 09.11.2010 03:09, schrieb Jason: > I'd like to be able switch between building my C extension with a > certain preprocessor macro defined or not defined. I'm using the > rudimentary distutils setup.py example given here: > > http://docs.python.org/extending/buil

Define macro when invoking setup.py

2010-11-08 Thread Jason
I'd like to be able switch between building my C extension with a certain preprocessor macro defined or not defined. I'm using the rudimentary distutils setup.py example given here: http://docs.python.org/extending/building.html Is there a command line option that distutils.core.se

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

"python setup.py sdist" does pick one directory

2010-06-05 Thread Miki
Hello All, The Selenium setup.py can be found at http://code.google.com/p/selenium/source/browse/trunk/setup.py. When running "python setup.py sdist" the "firefox/test/py" directory is ignored for some reason though it's mentioned in the "package_dir" and

Invoking setup.py in sub-packages

2010-05-13 Thread Francesc
Hi, I'd like to setup a package that is make of other sub-packages, modules and other extensions. What I have is something like (this is very simplified indeed): / __init__.py setup.py foo1/ __init__.py foo1.c [...] foo2/ setup.py __i

Re: how to register with pypi - no such setup.py

2009-12-28 Thread Phlip
On Dec 26, 4:24 pm, Stefan Krah wrote: > It is quite reasonable that changed archives with the same version number > are not accepted. Very helpful, not condescending. The message helps you remember to bump your version number. Try: "Please either increment your version number, or use your Pack

Re: how to register with pypi - no such setup.py

2009-12-27 Thread Diez B. Roggisch
Phlip schrieb: I have no alternative, to fix bugs in PyPi, _not_ in "that file", but to continue burning up version numbers that nobody cares about. The message is condescending because I am aware of the reason we version packages, and the message is _not_ helping me apply that reason! Aaand I

Re: how to register with pypi - no such setup.py

2009-12-26 Thread Stefan Krah
"to burn up" > > means - to my knowledge, PyPI does no such thing. > > I don't know how to test pypi on my own notebook. > > Each time I change setup.py or something, if I want to test my change, ^ > This means I am using up perfec

Re: how to register with pypi - no such setup.py

2009-12-26 Thread Phlip
> I have no alternative, to fix bugs in PyPi, _not_ in "that file", but > to continue burning up version numbers that nobody cares about. The > message is condescending because I am aware of the reason we version > packages, and the message is _not_ helping me apply that reason! Aaand I just found

Re: how to register with pypi - no such setup.py

2009-12-26 Thread Phlip
wledge, PyPI does no such thing. I don't know how to test pypi on my own notebook. Each time I change setup.py or something, if I want to test my change, I have to boost the version number, and then use sdist upload to push a new version to the server. This means I am using up perfectly go

Re: how to register with pypi - no such setup.py

2009-12-26 Thread Martin v. Loewis
Phlip wrote: >> What you want is a source distribution (sdist). > > Thanks. Yes, this is prob'ly documented somewhere. > > Now my next problem - how to get pypi.python.org to stop burning up > version numbers each time I test this? I don't speak English well enough to understand what "to burn up

  1   2   3   >