How do I customize PP (add or remove modules)?

156 views
Skip to first unread message

Nathan McCorkle

unread,
Mar 20, 2014, 7:41:36 PM3/20/14
to portabl...@googlegroups.com
I've cloned the github repo, but there seems to be a lot of repeating code... for example when I "grep -ril django ./" I get:

./2.7/descriptions.nsh
./2.7/modules.bat
./2.7/modules.nsh
./2.7/settings.bat

I could be wrong, but this seems to go against the DRY principle (Don't Repeat Yourself)... or at least it's not clear if there's a single line I can comment out to disable django (for example).

I also may need to add modules... it would be nice if there was a wiki page or even just a post on this forum giving me an explanation of how to accomplish these goals.

Thanks for a great project! I hope to use this for a new project!

Perica Zivkovic

unread,
Mar 21, 2014, 4:13:17 AM3/21/14
to portabl...@googlegroups.com
Hi there,

if you check readme you will see short descriptions what these for files are. Nothing is repeated here but separated in the logical units:
  • descriptions.nsh - language strings per package needed for installer creation
  • modules.bat - list of modules to be included and their specific rules for unpackaging/configuration
  • modules.nsh - NSIS installer configuration
  • settings.bat - list of modules to be included and their download locations
if you want to disable something, e.g. django, single line you are looking for is in modules.bat. 


Adding modules is specific per module and can range from simple unpack and copy to way more than that. 

If you have time to contribute and extend documentation or modules, please raise a pull request and I will be happy to integrate it!

Nathan McCorkle

unread,
Apr 4, 2014, 3:11:47 PM4/4/14
to portabl...@googlegroups.com
Oh, sorry for the double post just now! Google Groups didn't seem to be sorting by date for me!

Perica Zivkovic

unread,
Apr 4, 2014, 3:29:47 PM4/4/14
to portabl...@googlegroups.com
No problem at all :-) If you find a better way of organizing scripts/module definitions, feel free to submit a pull request.

Keep pythoning!
Reply all
Reply to author
Forward
0 new messages