[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread James
James added the comment: i'm fine with that and willing to contribute patches, however i would feel better if whoever upstream was, was more supportive of the idea. someone let me know. a thought: - it's true (as mentioned) that distclean isn't necessarily directly related to distributing pyt

[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: Hello So, is this bug “add a distclean command” now? Regards -- nosy: +merwok ___ Python tracker ___

[issue6142] Distutils doesn't remove .pyc files

2010-03-15 Thread Thijs Triemstra
Changes by Thijs Triemstra : -- nosy: +thijs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6142] Distutils doesn't remove .pyc files

2009-06-02 Thread James
James added the comment: Currently, I have (had) a make file with a clean target that would remove these files. Would you recommend keeping this file and it's associated functionality, or is the idea to be able to integrate this into distutils and be able to do away with makefiles for python pro

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: The only reason I would see to clean .pyc file in distutils clean command is if the build command (or any other command) would generate them in the source tree, which is not the case. That said, build_ext -i *does* create .so files in the source tree, so we should

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: Antoine: Okay sorry not a mess then. I just figure that if i'm using the distutils tool for doing all the fun things to my local source directory that I potentially used to do with say a makefile, then would it not be beneficial to have a useful -option- (as included in

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: ps: included is a platform independent version of the code, so that it doesn't depend on os.system() specific commands. HTH, _J -- Added file: http://bugs.python.org/file14146/clean.py.patch ___ Python tracker

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why you call it a "mess". Generating a pyc file is the normal way of operating when importing a Python module from source. It's not just distutils. And the fact that it's "harmless" does not justify adding a distutils option for something which doe

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: I could agree with R. David Murray, and I think that it's fine that this be included under a dist clean command. Ultimately I'm writing an application and I'm trying to use distutils with it. I'll potentially run a: "$ setup.py build_ext -i" or whatever it may be, and th

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think distutils should host whetever functionality useful to developers. Distutils is for packaging and distributing Python software. -- nosy: +pitrou ___ Python tracker __

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread R. David Murray
R. David Murray added the comment: It seems to me that this functionality is similar to what a 'distclean' target would do in a typical makefile. Don't know if that perspective helps any :) -- nosy: +r.david.murray ___ Python tracker

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James added the comment: Hi, the patch only removes them if one adds the --pyc option. I think it is a good idea to have some option or target somewhere to remove the types of files that can be regenerated because often developers want to "get them out of the way". Example: I'll be working on a

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: The clean command cleans up temporary files from 'build' command. Your patch removes files that are not generated by the build command only but by a normal usage of Python modules. Why do you need to remove them precisely ? -- components: +Distutils -Lib

[issue6142] Distutils doesn't remove .pyc files

2009-05-31 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: -> tarek components: +Library (Lib) nosy: +tarek priority: -> normal ___ Python tracker ___ __

[issue6142] Distutils doesn't remove .pyc files

2009-05-29 Thread James
New submission from James : Priority: 4 Keywords: patch, distutils, pyc Comment: I posted this on the distutils mailing list, and they said I should post it here instead. --- Hi, I'm certaintly new to distutils and setuptools, however I figured I'd send in this patch, and either it will get merg