mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove --develop-from option in calibre-debug as it is no longer needed
This commit is contained in:
parent
ce5f89c2b4
commit
54d62e44f2
@ -35,18 +35,9 @@ Run an embedded python interpreter.
|
||||
parser.add_option('--pdfreflow', default=None,
|
||||
help='Path to PDF file to try and reflow. Output will be placed in '
|
||||
'current directory. ')
|
||||
parser.add_option('-f', '--develop-from', default=None,
|
||||
help=('Develop calibre from the specified path. '
|
||||
'The path should point to the src sub-directory in the '
|
||||
'calibre source tree.'))
|
||||
|
||||
return parser
|
||||
|
||||
def develop_from(path):
|
||||
from calibre.gui2 import build_forms
|
||||
print 'Compiling .ui forms...'
|
||||
build_forms(path)
|
||||
|
||||
def migrate(old, new):
|
||||
from calibre.utils.config import prefs
|
||||
from calibre.library.database import LibraryDatabase
|
||||
@ -192,8 +183,6 @@ def main(args=sys.argv):
|
||||
from calibre.utils.logging import default_log
|
||||
opts2, args = px().parse_args(['xxxx', '-vvvv', opts.pdfreflow])
|
||||
run(opts2, opts.pdfreflow, default_log)
|
||||
elif opts.develop_from is not None:
|
||||
develop_from(opts.develop_from)
|
||||
else:
|
||||
from calibre import ipython
|
||||
ipython()
|
||||
|
@ -596,3 +596,6 @@ def build_forms(srcdir, info=None):
|
||||
|
||||
open(compiled_form, 'wb').write(dat)
|
||||
|
||||
_df = os.environ.get('CALIBRE_DEVELOP_FROM', None)
|
||||
if _df and os.path.exists(_df):
|
||||
build_forms(_df)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -94,11 +94,8 @@ the previously checked out calibre code directory, for example::
|
||||
|
||||
cd C:\Users\kovid\work\calibre
|
||||
|
||||
calibre is the directory that contains the src and resources sub directories. Then, run the following command::
|
||||
calibre is the directory that contains the src and resources sub directories.
|
||||
|
||||
calibre-debug --develop-from src
|
||||
|
||||
This assumes that the location of the calibre install (typically ``C:\Program Files\calibre``) is in your PATH.
|
||||
The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to the absolute path to the src directory.
|
||||
So, following the example above, it would be ``C:\Users\kovid\work\calibre\src``. A short
|
||||
`guide <http://docs.python.org/using/windows.html#excursus-setting-environment-variables>`_ to setting environment
|
||||
@ -117,8 +114,6 @@ in your favorite editor and add the line::
|
||||
print "Hello, world!"
|
||||
|
||||
near the top of the file. Now run the command :command:`calibredb`. The very first line of output should be ``Hello, world!``.
|
||||
Note that if you make changes to any .ui files (these files define the |app| Graphical User Interface), you have to re-run the
|
||||
``calibre-debug --develop-from src`` command, which will compile the .ui files, so that your changes show up.
|
||||
|
||||
OS X development environment
|
||||
------------------------------
|
||||
@ -128,11 +123,8 @@ the previously checked out calibre code directory, for example::
|
||||
|
||||
cd /Users/kovid/work/calibre
|
||||
|
||||
calibre is the directory that contains the src and resources sub directories. Then, run the following command::
|
||||
calibre is the directory that contains the src and resources sub directories. Ensure you have installed the |app| commandline tools via Preferences->Advanced in the |app| GUI.
|
||||
|
||||
calibre-debug --develop-from src
|
||||
|
||||
This assumes that you have installed the |app| command line tools. This can be done via Preferences->Advanced in the |app| GUI.
|
||||
The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to the absolute path to the src directory.
|
||||
So, following the example above, it would be ``/Users/kovid/work/calibre/src``. Apple
|
||||
`documentation <http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-BCIJIJBH>`_
|
||||
@ -151,8 +143,6 @@ in your favorite editor and add the line::
|
||||
print "Hello, world!"
|
||||
|
||||
near the top of the file. Now run the command :command:`calibredb`. The very first line of output should be ``Hello, world!``.
|
||||
Note that if you make changes to any .ui files (these files define the |app| Graphical User Interface), you have to re-run the
|
||||
``calibre-debug --develop-from src`` command, which will compile the .ui files, so that your changes show up.
|
||||
|
||||
Linux development environment
|
||||
------------------------------
|
||||
@ -166,9 +156,7 @@ Install the |app| using the binary installer. The opena terminal and change to
|
||||
|
||||
cd /home/kovid/work/calibre
|
||||
|
||||
calibre is the directory that contains the src and resources sub directories. Then, run the following command::
|
||||
|
||||
calibre-debug --develop-from src
|
||||
calibre is the directory that contains the src and resources sub directories.
|
||||
|
||||
The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to the absolute path to the src directory.
|
||||
So, following the example above, it would be ``/home/kovid/work/calibre/src``. How to set environment variables depends on
|
||||
@ -187,7 +175,4 @@ in your favorite editor and add the line::
|
||||
print "Hello, world!"
|
||||
|
||||
near the top of the file. Now run the command :command:`calibredb`. The very first line of output should be ``Hello, world!``.
|
||||
Note that if you make changes to any .ui files (these files define the |app| Graphical User Interface), you have to re-run the
|
||||
``calibre-debug --develop-from src`` command, which will compile the .ui files, so that your changes show up.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user