Skip to content

Commit

Permalink
Removed psychojs as submodule. Now uses web loading instead of packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Jun 25, 2018
1 parent 9fce053 commit 2023643
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "psychojs"]
path = psychojs
url = https://github.com/psychopy/psychojs
1 change: 0 additions & 1 deletion psychojs
Submodule psychojs deleted from 100d72
15 changes: 1 addition & 14 deletions psychopy/experiment/components/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(self, parentName, exp, expName='', fullScr=True,
'Monitor', 'Screen', 'Full-screen window',
'Window size (pixels)',
'color', 'colorSpace', 'Units', 'HTML path',
'OSF Project ID', 'JS libs']
'OSF Project ID']
# basic params
self.params['expName'] = Param(
expName, valType='str', allowedTypes=[],
Expand Down Expand Up @@ -432,19 +432,6 @@ def copyFileWithMD5(src, dst):
os.makedirs(dstFolder)
shutil.copy2(srcFile['abs'], dstAbs)

# add the js libs if needed for packaging
ppRoot = os.path.split(os.path.abspath(psychopy.__file__))[0]
jsPath = join(ppRoot, '..', 'psychojs')
if os.path.isdir(jsPath):
if self.params['JS libs'].val == 'packaged':
copyTreeWithMD5(join(jsPath,'php'), join(folder, 'php'))
copyTreeWithMD5(join(jsPath,'js'), join(folder, 'js'))
else:
jsZip = zipfile.ZipFile(os.path.join(ppRoot, 'psychojs.zip'))
# copy over JS libs if needed
if self.params['JS libs'].val == 'packaged':
jsZip.extractall(path=folder)

def writeInitCodeJS(self, buff, version, localDateTime):
# write info.php and resources folder as well
self.prepareResourcesJS()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
# for the source dist this doesn't work - use the manifest.in file
dataExtensions = ['*.txt', '*.ico', '*.jpg', '*.gif', '*.png', '*.mov',
'*.spec', '*.csv', '*.psyexp', '*.xlsx', '.zip']
dataFiles = ['psychopy/psychojs.zip']
datafiles = []

# post_install only needs installing on win32 but needs packaging in the zip
scripts = ['psychopy/app/psychopyApp.py',
Expand Down

0 comments on commit 2023643

Please sign in to comment.