Hi Peter, You'll need to have a complete dev environment going with Django and all other dependencies as well. This is best done in a virtualenv. You can create one and then install all dependencies:
$ pip install virtualenv $ virtualenv ~/rb-build $ . ~/rb-build/bin/active.sh $ cd /path/to/rb/src $ ./setup.py develop Then try rebuilding the egg. Christian -- Christian Hammond - chip...@chipx86.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Tue, Sep 1, 2015 at 2:20 PM, Peter Williams < i.ask.django.questi...@gmail.com> wrote: > This ends up returning: > > running bdist_egg > running egg_info > running build_media > Traceback (most recent call last): > File "contrib/internal/build-media.py", line 20, in <module> > import pkg_resources > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2880, in > <module> > working_set = WorkingSet._build_master() > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 434, in > _build_master > return cls._build_from_requirements(__requires__) > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 447, in > _build_from_requirements > dists = ws.resolve(reqs, Environment()) > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 626, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: Django>=1.6.11,<1.7 > Traceback (most recent call last): > File "./setup.py", line 232, in <module> > "Topic :: Software Development :: Quality Assurance", > File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup > dist.run_commands() > File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands > self.run_command(cmd) > File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command > cmd_obj.run() > File "/usr/lib/python2.6/site-packages/setuptools/command/bdist_egg.py", > line 152, in run > self.run_command("egg_info") > File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command > cmd_obj.run() > File "./setup.py", line 80, in run > self.run_command('build_media') > File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command > cmd_obj.run() > File "./setup.py", line 100, in run > raise RuntimeError('Failed to build media files') > RuntimeError: Failed to build media files > > Is there a missing dependency? > > This is to patch a bug in a later release. > > Thanks! > > On Tuesday, September 1, 2015 at 12:40:05 PM UTC-7, Christian Hammond > wrote: >> >> Hi Peter, >> >> You need to have node.js, lessc, and uglifyjs installed locally, and then >> you must repackage Review Board with your modification by checking out the >> source tree, modifying the file, and running: >> >> ./setup.py bdist_egg >> >> Can I ask what changes you're making? It's usually not in your best >> interest to make these sort of modifications without sending them upstream. >> If there's custom behavior you need, it's best to look into what extensions >> can do or talk to us about improvements you need there. >> >> Christian >> >> -- >> Christian Hammond - chi...@chipx86.com >> Review Board - https://www.reviewboard.org >> Beanbag, Inc. - https://www.beanbaginc.com >> >> On Tue, Sep 1, 2015 at 12:16 PM, Peter Williams <i.ask.djang...@gmail.com >> > wrote: >> >>> Review Board minifies it JS files into the follow location: >>> >>> >>> reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js >>> >>> This can often be generated from a combination of JS files in: >>> >>> >>> reviewboard/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/htdocs/static/rb/js/utils/* >>> >>> I made the update to a JS file in the /utils/ directory but this change >>> is not getting propagated to the `reviews.min.js` file. >>> >>> What is the recommended way to get local changes propagated to the >>> minified JS files? >>> >>> -- >>> Supercharge your Review Board with Power Pack: >>> https://www.reviewboard.org/powerpack/ >>> Want us to host Review Board for you? Check out RBCommons: >>> https://rbcommons.com/ >>> Happy user? Let us know! https://www.reviewboard.org/users/ >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "reviewboard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to reviewboard...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.