You don't have to do anything. Python compiles .py files automatically. If you are doing this, however, I would recommend getting the git source code, and modifying that. The reason is that git makes it much easier to reset your changes. If you run Python from the directory of the git checkout, it will import SymPy from there instead of from the installed version.
Aaron Meurer On Tue, Aug 27, 2019 at 4:54 AM David Bailey <[email protected]> wrote: > > On 27/08/2019 11:32, Kalevi Suominen wrote: > > Did you add the print statement to a source file in a standard installation? > The compiled files are also part of the standard installation and can usually > be modified only by the super user. Running as an ordinary user will not > compile the sources. Instead, you should install a copy of the library in a > directory where you have all access rights. The sources can be downloaded > from https://www.sympy.org/en/download.html. > > Thanks for your reply. > > Sorry, I should probably have added a bit more information. > > In fact I installed python and sympy in a read-write location on my machine: > c:\PythonSystem. I also have a copy, so if I were to corrupt the library, I > could just copy the whole thing back again to reset it. I noticed that if I > generate an exception, the system references those source files, for example: > > File "C:\PythonSystem\lib\site-packages\sympy\combinatorics\partitions.py", > line 233, in RGS > partition = self.partition > > Etc etc > > Given that, what else do I need to do to compile my modified source? > > David > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/bdb6b08a-fed7-1237-0eb2-066a82df0c90%40dbailey.co.uk. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BHB%2BpW6-Rd1VRmfiEWYOQRq71M%3DEW0wa7R_8KSB06rnA%40mail.gmail.com.
