Skip to content

Commit

Permalink
Drop svn version log
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jun 25, 2024
1 parent 68dfab3 commit 6efd08d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import sys
import os
import shutil
from subprocess import Popen, PIPE
import ctypes.util
import argparse
from os.path import isfile, join
Expand Down Expand Up @@ -72,12 +71,6 @@ def remove_prefix(name, prefix):

logging.basicConfig(level=getattr(logging,args[0].log),format='%(levelname)s:%(message)s',filename=args[0].log_file)
logging.debug('setup.py called with the following optional args\n %s\n argument parsing completed.',vars(args[0]))
try:
_p = Popen(["svnversion", "."], stdout=PIPE)
revision = _p.communicate()[0].decode('ascii')
except Exception:
revision = "unknown"
logging.debug('Source from svn revision {}'.format(revision[:-1])) # exclude newline

#If prefix is set, we want to allow installation in a directory that is not on PYTHONPATH
#and this is only possible with distutils, not setuptools
Expand Down Expand Up @@ -708,11 +701,8 @@ def fortran_extensionlists(self):
"""

version_txt = os.path.join('assimulo', 'version.txt')
if revision == "":
revision = "unknown"
with open(version_txt, 'w') as f:
f.write(VERSION + '\n')
f.write("r" + revision)

license_info=[place+os.sep+pck+os.sep+'LICENSE_{}'.format(pck.upper())
for pck in thirdparty_methods for place in ['thirdparty','lib']]
Expand Down

0 comments on commit 6efd08d

Please sign in to comment.